Hi all. I'm trying to learn C99. A few questions:
1. When I write code that interacts with the operating system a fair bit, I find that the number of possible error conditions grows exponentially with each call. Every time I call a system function, I have to gracefully handle all possible errors. When people write code, do they typically write error-handling code for each function call at the time, or do they make it work assuming-no-errors and then go back and write error handling later?
2. If my code has multiple .c source files and multiple .h files, and it has global variables, where are those globals typically defined? In a .c file or in a .h file? How are they typically made known to the other files? Using 'extern' in a .c file or in a .h file? Some of the talk of 'tentative definition' in K&R 2nd edition has confused me. What's that about?