Most readable way to organize variables and files?
Hi Im working on a library and I'm curious as to whats the most readable way to organize things. Currently I have all my function definitions in one C file and all the variables used(except my defines, i have 2) declared in each function. My header file has all my function prototypes etc. I downloaded a few librarys off freshmeat to try and get ideas of how to organize things and everyone does it different.
Is it easier to read if All the functions are in one file, or maybe put each in a seperate file? Also is it easier to read if I put variables that are used in more than one function in a structure? I know everyone does it different just curious as to whats the recommended way of doing this. I want to keep it as readable as possible for myself because it's starting to get bigger, and for anyone who might actually use it. How do you guys usually organize stuff? Any and all comments would be great:)