I have some warnings that I do not know how to resolve, here is my output.
main.c:22:9: warning: implicit declaration of function 'help' is invalid in C99
[-Wimplicit-function-declaration]
help();
^
I have stated help() in a switch case statement along with other functions:
case 1:
run();
break;
case 2:
help();
break;
case 3:
end();
break;
default:
printf("Something went wrong...\n");
These functions are then written in a separate file, cases.c:
void help()
{
int i;
char *msg[80] =
{
"THIS PROGRAM STARTS A SIMPLE WEB-SERVER. FOR TESTING, DEBUGGING, AND ETC.",
"SIMPLY PRESS 1 TO RUN A SERVER ON LOCALHOST"
};
printf("%d\n", i);
}
Help would be greatly appreciated, thx!