R
Robert
I'm finding conflicting information about strerror_r. The
manpage says an int is returned, but the prototype in string.h
says char *. How exactly is this function supposed to be used
and verified for correct completion? A quick search seems to
suggest that GNU versions may return char *, while the POSIX
standard says int. What's the recommended method of dealing
with portability issues using this function? Casting to int,
then use the user-supplied errbuf if zero, else a generic
message?
TIA,
Robert
manpage says an int is returned, but the prototype in string.h
says char *. How exactly is this function supposed to be used
and verified for correct completion? A quick search seems to
suggest that GNU versions may return char *, while the POSIX
standard says int. What's the recommended method of dealing
with portability issues using this function? Casting to int,
then use the user-supplied errbuf if zero, else a generic
message?
TIA,
Robert