poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / strdup.texi
blob2f337aaec1dd5ed1141ee92be34c173711dc126c
1 @node strdup
2 @section @code{strdup}
3 @findex strdup
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/strdup.html}
7 Gnulib module: strdup or strdup-posix
9 Portability problems fixed by either Gnulib module @code{strdup} or @code{strdup-posix}:
10 @itemize
11 @item
12 This function has no prototype in @code{<string.h>} on some old platforms.
13 @end itemize
15 Portability problems fixed by Gnulib module @code{strdup-posix}:
16 @itemize
17 @item
18 Upon failure, the function does not set @code{errno} to @code{ENOMEM} on
19 some platforms:
20 mingw, MSVC 14.
21 @end itemize
23 Portability problems not fixed by Gnulib:
24 @itemize
25 @end itemize