Mercurial > gnulib
view modules/strndup @ 40218:e92cc6824b7f
getloadavg: Write NULL for the null pointer.
Reported by Michal Privoznik <mprivozn@redhat.com>.
* lib/getloadavg.c (getloadavg): Write NULL instead of 0.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 03 Mar 2019 19:36:14 +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