1 /* POSIX variant of strerror_r. */
7 __xpg_strerror_r (int errnum
,
16 error
= _strerror_r (_REENT
, errnum
, 1, &result
);
17 if (strlen (error
) >= n
)
19 memcpy (buffer
, error
, n
- 1);
23 strcpy (buffer
, error
);
24 return (result
|| *error
) ? result
: EINVAL
;