Hello folks,
I have some doubt regarding the creation of header files and libraries using C.
Suppose I am defining all the functionalities related to the Stack and I wan to create it as library, for eg. stack.C which will get me the object file, Stack.o in Linux OS and one file for definitions which I would include in the other client programs stack.h. Now suppose I want to create as many Stacks as I want just by including this file in the client programs. Now what should I use to accommodate this. One way is to use pointers in the stack.c file. Is there any other better option? Even using structures in the source code won't allow me to define functions in them.
Please help me out.
:S