Even putting aside the ugliness of errno, this is pretty bad. I'm at the point with libc where I try to use as little of it as I can, though I'm not writing a lot of C these days
well, unless you are 'syscalling' someone else is doing it on your behalf.
well, unless you are 'syscalling' someone else is doing it on your behalf.