c文件和h文件demo

来源:互联网 发布:linux 没有telnet 编辑:程序博客网 时间:2024/05/20 08:25
/***************************************************************************** * demo.h * * Copyright (C) 2017 onejacky <wanshijie@126.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *  * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     * GNU General Public License for more details. *  * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * ****************************************************************************/#ifndef DEMO_H_INCLUDE#define DEMO_H_INCLUDE/***************************************************************************** * Included Files ****************************************************************************//***************************************************************************** * Pre-processor Definitions ****************************************************************************//***************************************************************************** * Public Types ****************************************************************************//***************************************************************************** * Public Data ****************************************************************************//***************************************************************************** * Inline Functions ****************************************************************************//****************************************************************************/ #ifdef __cplusplusextern "C" {#endif/***************************************************************************** * Public Function Prototypes ****************************************************************************//****************************************************************************/#ifdef __cplusplus}#endif/****************************************************************************/#endif /* DEMO_H_INCLUDE *//****************************************************************************//*                                                                          *//*  End of file.                                                            *//*                                                                          *//****************************************************************************/
/***************************************************************************** * demo.c *  * Copyright (C) 2017 onejacky <wanshijie@126.com> *  * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *  * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. *  * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. *  ****************************************************************************//***************************************************************************** * Included Files ****************************************************************************/#include "demo.h"/***************************************************************************** * Pre-processor Definitions ****************************************************************************//***************************************************************************** * Private Types ****************************************************************************//***************************************************************************** * Private Function Prototypes ****************************************************************************//***************************************************************************** * Private Data ****************************************************************************//***************************************************************************** * Public Data ****************************************************************************//***************************************************************************** * Private Functions ****************************************************************************//***************************************************************************** * Public Functions ****************************************************************************//****************************************************************************//*                                                                          *//*  End of file.                                                            *//*                                                                          *//****************************************************************************/