view doc/posix-functions/strdup.texi @ 16868:1def4f23c989

strdup: undeprecate, IRIX 6.5 needs it Reported by Simon Josefsson. * modules/strdup (Status): No longer obsolete. * doc/posix-functions/strdup.texi (strdup): Document this. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Mon, 21 May 2012 15:31:44 -0600
parents 6355dc4626b5
children eabd04107c92
line wrap: on
line source

@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 platforms:
IRIX 6.5.
@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