hi,
suppose i have a C file in which i include a "header file" i created. then, can i again modify this C file into a header file which in turn calls another header??? i knew that "header files" contains definitiions alone.. but u must also know that even if we type in the function in the h file and save it as such, it cud be called instead of defining alone and writing remaining in another C file. so, with this, the situation is
at first i write a program sample.c as...
#include <...>
....
#include "sample1.h"
void main()
{
.......
}
now i modify this sample.c to sample.h, with no main, and only function declarations similar to how i did the sample1, with sample1 stil being used in the new sample.h file...
if i create a sample2.c and use sample.h, does it mean that sample1.h is also included? i guess no... but how do i do it ?? wil adding sample1.h itslef fix the problem?? guess its confusing too! sorry for that.. incase.
/legolas
suppose i have a C file in which i include a "header file" i created. then, can i again modify this C file into a header file which in turn calls another header??? i knew that "header files" contains definitiions alone.. but u must also know that even if we type in the function in the h file and save it as such, it cud be called instead of defining alone and writing remaining in another C file. so, with this, the situation is
at first i write a program sample.c as...
#include <...>
....
#include "sample1.h"
void main()
{
.......
}
now i modify this sample.c to sample.h, with no main, and only function declarations similar to how i did the sample1, with sample1 stil being used in the new sample.h file...
if i create a sample2.c and use sample.h, does it mean that sample1.h is also included? i guess no... but how do i do it ?? wil adding sample1.h itslef fix the problem?? guess its confusing too! sorry for that.. incase.
/legolas