...
The GNU libc implementation of strerror_r declares the function to return char*
, in conflict with the POSIX specification. The following This noncompliant code example relies on this return type to pass the return value as an argument to the %s
formatting directive to fprintf
. The behavior of the example will be undefined on a platform that declares the return type of strerror_r()
to be int
, in accordance with POSIX.
...