view modules/strndup @ 40181:4edc083b6693

Add script for running tests under valgrind. * build-aux/run-test: New file, from GNU libunistring. * doc/valgrind-tests.texi: Rewritten to mention alternative approaches as well.
author Bruno Haible <bruno@clisp.org>
date Mon, 04 Feb 2019 22:35:38 +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