I’m not a programmer sorry if the question is lame . If it is out of context direct me to the proper link…
If I have a header file say “file.h” and I have several functions declared in it. Apart from giving definition in “file.c” is there any way so that i can use different .c files for different functions so that header file remain file.h(which has all the corresponding functions) .
i’m using code blocks .
any help is appreciated….
For your first question, yes, you can, here is an article that talks about it.
If you have a header file titled
header.hand wish to have it include functions contained infunction.cas well as from another library you simply need to do the followingin header.h:
Where,
other.his a functional header file containing your other functions.N.B.: This part of the answer refers to a section of the question that the OP removed.
For your next question, it seems like your function declaration of
getNodedoes not match how you are trying to implement it. (created as void function, but are calling it with an integer parameter). To fix your problem, I would start by sorting that out.