Friday, July 31, 2009

C programming: organising source file question?

I'm writing a C library for a school assignment. How is it possible to split this library into sub-libraries for better modularity? The user of the library however should only add one header file to his code irrespective of the number of sub libraries I split it into.





10x

C programming: organising source file question?
Use preprocessors effectively to make the program get the required header file.





So that if the programmer uses only one header file it indirectly calls the other. and if the user uses two header files it leaves the useless one.

gerbera

No comments:

Post a Comment