Multi Header Files in 1 for C Program

How to write a C Program Multi Header Files in 1 for C in C Programming Language ?


Solution:

Where there is a line that looks like /*------------------------------------------ */  cut in to each file that it corresponds to.
This is multiple header files in to 1.


/* C - Smit -  System Management Interface Tool.
 *
 *  -----------------------------------------------------------------------------------------------------
 *  This program aimed to work similar to the AIX's Smit and will be a work
 *  in process as it matures and I learn more skills with C.
 *  The Program is written in C using a GNU/Linux OS and tested on 
 *  Linux, Mac OSX and FreeBSD.
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Source Code Filename: fsmenu.h
 *  Source Code Description: Header File for fsmenu.c
 *
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Insert License Here
 *
 */



#ifndef FSMENU_H_
#define FSMENU_H_


/* Draw Shell Menu Function Prototype */
void drawfsmenu(int fsmitem);

/* Main Shell menu function */
int fsmenumain(void);

#endif

/*-----------------------------------------------------------------------------------------------------------------------------*/

/* C - Smit -  System Management Interface Tool.
 *
 *  Copyright (C) 2015-Whatever   Vincent  
 *
 *  -----------------------------------------------------------------------------------------------------
 *  This program aimed to work similar to the AIX's Smit and will be a work
 *  in process as it matures and I learn more skills with C.
 *  The Program is written in C using a GNU/Linux OS and tested on 
 *  Linux, Mac OSX and FreeBSD.
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Source Code Filename: mainmenu.h
 *  Source Code Description: Header File for mainmenu.c
 *
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Insert License Here
 *
 */



#ifndef MAINMENU_H_
#define MAINMENU_H_


/* Draw Shell Menu Function Prototype */
void drawmainmenu(int mmitem);

/* Main Shell menu function */
int mmenumain(void);

#endif

/*--------------------------------------------------------------------------------------------------------------------------------*/

/* C - Smit -  System Management Interface Tool.
 *
 *  Copyright (C) 2015-Whatever   Vincent  
 *
 *  -----------------------------------------------------------------------------------------------------
 *  This program aimed to work similar to the AIX's Smit and will be a work
 *  in process as it matures and I learn more skills with C.
 *  The Program is written in C using a GNU/Linux OS and tested on 
 *  Linux, Mac OSX and FreeBSD.
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Source Code Filename: shells.h
 *  Source Code Description: Header File for Shells.c
 *
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Insert License Here
 *
 */



#ifndef SHELLS_H_
#define SHELLS_H_

/* Execute Default Shell */
void executedefaultshell(void);

/* Draw Shell Menu Function Prototype */
void drawshellmenu(int shmitem);

/* Main Shell menu function */
int shellmenumain(void);

#endif

/*------------------------------------------------------------------------------------------------------------------------------ */

/* C - Smit -  System Management Interface Tool.
 *
 *  Copyright (C) 2015-Whatever   Vincent
 *
 *  -----------------------------------------------------------------------------------------------------
 *  This program aimed to work similar to the AIX's Smit and will be a work
 *  in process as it matures and I learn more skills with C.
 *  The Program is written in C using a GNU/Linux OS and tested on 
 *  Linux, Mac OSX and FreeBSD.
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Source Code Filename: usermenu.h
 *  Source Code Description: Header File for usermenu.c
 *
 *  -------------------------------------------------------------------------------------------------------------------------
 *
 *  Insert License Here
 *
 */



#ifndef USERMENU_H_
#define USERMENU_H_


/* Draw Shell Menu Function Prototype */
void drawusermenu(int usrmitem);

/* Main Shell menu function */
int usermenumain(void);

#endif


Learn More :