Greg Hudson wrote: > > So it's a function call. So what? It still returns a single stable > value. > > If you're worried about speed, that's ridiculous. This is an error > case; a few cycles here or there isn't going to matter. (And it's not > like errno is ever a slow function call, when it's a function call.) >
Agreed. Checking errno is a cornerstone of defensive programming. -- =========================================================================== Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/ "A society that will trade a little liberty for a little order will lose both and deserve neither" - T.Jefferson