• Home
  • Blog
  • Write a C code for the given question

Write a C code for the given question

0 comments

Modify Project 8 so that the program is split into three source files and two header
files.
1) Put all functions related to operations on the list of requests into request.c
2) Create a header file named request.h that contains struct request
declaration and prototypes for the functions in request.c. The header file
should enclose the contents of the header file in an #ifndef-#endif pair to
protect the file.
3) Put the read_line function in a separate file named readline.c.
4) Create a header file named readline.h that contains a prototype for the
read_line function. The header file should enclose the contents of the header
file in an #ifndef-#endif pair to protect the file.
5) summer_camp.c contains the main function.
6) Include appropriate header files in the source files.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}