Yeah... I'll do it tomorrow. Well, actually I've never used one of them. And it's not their "fault". There are some factors not existing in ANSI C. For example threads. And they've done a good job. I...
Type: Posts; User: Brafil
Yeah... I'll do it tomorrow. Well, actually I've never used one of them. And it's not their "fault". There are some factors not existing in ANSI C. For example threads. And they've done a good job. I...
Of course, that looks like a mismatch in design. well, what solution would you propose in that case?
I think check each function if it's returning an error and you'll be fine.
Well, I tried reading it but got bored quickly ;-p. Now I see, it says "The symbol errno, defined by including the <errno.h> header, expands to a modifiable lvalue of type int". Dunno where I got...
PS: I think setting errno is not really portable, since some (many?) libraries define a function to return errno for the specific thread as errno (#define error _get_thread_errno()) And you can't...