What are the guidelines for using errno? I'm
working on getcwd() and want to do something
like
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
void
prefix(getcwd_i4_sub) ( char * cwd, gfc_strlen_type cwd_len,
GFC_INTEGER_4 * status)
{
errno = 0;
(void) getcwd (cwd, (size_t) cwd_len);
*status = (GFC_INTEGER_4) errno;
}
--
Steve