summaryrefslogtreecommitdiff
path: root/gnulib/doc/posix-functions/strdup.texi
blob: f654a3ce87c9ae12caf83bda273ea30766cd6544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@node strdup
@section @code{strdup}
@findex strdup

POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/strdup.html}

Gnulib module: strdup or strdup-posix

Portability problems fixed by either Gnulib module @code{strdup} or @code{strdup-posix}:
@itemize
@item
This function is missing on some old platforms.
@item
This function has no prototype in @code{<string.h>} on some old platforms.
@end itemize

Portability problems fixed by Gnulib module @code{strdup-posix}:
@itemize
@item
Upon failure, the function does not set @code{errno} to @code{ENOMEM} on
some platforms:
mingw, MSVC 9.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@end itemize