02-02-2006 06:20 PM
02-03-2006 08:54 AM
02-03-2006 09:06 AM
Yes. Although it is more usual to have a .h file containing just the declarations used within the corresponding .c file. You could still then have an overall .h file which incorporated further #includes for each such .h file (together with other common declarations, typedefs etc that your project might use) , which is then #included by all your c files.
(This is why programmers like C, and managers hate it: the language is so flexible and powerful that it is difficult to pin down a single 'best practice' approach and get everyone to use it.)
JR
02-03-2006 10:36 AM