view modules/strndup @ 40205:9e8fb35d4032

relocatable-prog: Revert "Use wrapper-free installation on Mac OS X." * build-aux/install-reloc: Revert change. * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
author Bruno Haible <bruno@clisp.org>
date Mon, 04 Mar 2019 17:25:04 +0100
parents ed77fe40c360
children
line wrap: on
line source

Description:
strndup() function: duplicate a size-bounded string.

Files:
lib/strndup.c
m4/strndup.m4

Depends-on:
string
extensions
strnlen         [test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1]

configure.ac:
gl_FUNC_STRNDUP
if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
  AC_LIBOBJ([strndup])
fi
gl_STRING_MODULE_INDICATOR([strndup])

Makefile.am:

Include:
<string.h>

License:
LGPLv2+

Maintainer:
glibc