??? 06/06/07 18:35 Read: times |
#140336 - Ok, so it might have been a bit cryptic Responding to: ???'s previous message |
Most my code is written in C++ these days, so where necessary I write functions to return false (zero) if they fail, and true (non-zero) if they succeed. I tend to carry that over into my C programming because it makes more sense when calling functions in conditional statements, hence not returning -1 on failure in the example.
...and as far as hating C is concerned, you and me both friend, but hey, I've got to earn a living and I didn't invent the damn language! Matt. |