setting errno
DJ Delorie
dj@delorie.com
Sun Jan 31 23:52:00 GMT 1999
Tim Taylor wrote:
>
> I'm porting a program that sets errno if an operation fails. However, in
> the B20.1 errno is a macro that dereferences the pointer returned by a
> function #define errno (*__errno())
>
> What is the proper way to set errno in cygwin?
The correct way is, always was, and always will be, like thus:
#include <errno.h>
errno = N;
The ANSI spec requires it to be so.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list