view modules/strdup-posix @ 16105:a2d45c112907

Depend on module fcntl-h when AT_FDCWD is used. * modules/utimens (Depends-on): Add fcntl-h. * modules/areadlinkat (Depends-on): Likewise. * modules/areadlinkat-with-size (Depends-on): Likewise. * modules/faccessat (Depends-on): Likewise. * modules/fchmodat (Depends-on): Likewise. * modules/fchownat (Depends-on): Likewise. * modules/getcwd (Depends-on): Likewise. * modules/mkdirat (Depends-on): Likewise. * modules/mkfifoat (Depends-on): Likewise. * modules/readlinkat (Depends-on): Likewise. * modules/symlinkat (Depends-on): Likewise. * modules/dup2-tests (Depends-on): Likewise. * modules/fdutimensat-tests (Depends-on): Likewise. * modules/futimens-tests (Depends-on): Likewise.
author Bruno Haible <bruno@clisp.org>
date Sat, 19 Nov 2011 21:07:36 +0100
parents 037e4c930d72
children
line wrap: on
line source

Description:
strdup() function: duplicate a string.

Files:
lib/strdup.c
m4/strdup.m4

Depends-on:
string
malloc-posix    [test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1]

configure.ac:
gl_FUNC_STRDUP_POSIX
if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
  AC_LIBOBJ([strdup])
  gl_PREREQ_STRDUP
fi
gl_STRING_MODULE_INDICATOR([strdup])

Makefile.am:

Include:
<string.h>

License:
LGPLv2+

Maintainer:
all, glibc