I don't agree. Granted there are various return codes allowable depending on the specific function. You have to look it up and treat each accordingly.
I would only check errno in an error case. I...
Type: Posts; User: nonoob
I don't agree. Granted there are various return codes allowable depending on the specific function. You have to look it up and treat each accordingly.
I would only check errno in an error case. I...
Normally you should only check errno if something went wrong... like a function returned:
fopen() returned a NULL
fwrite() returned a count written which was not what was intended
rename()...