# HG changeset patch # User Jim Meyering # Date 1037885590 0 # Node ID c1f0c85e44eb03c10ffa2ac0b149b20580e62ffb # Parent 24e73e2fb249e002a19d91a6efa6ce4ea128ce31 (strdup): Tweak comment and initial #if/#include. diff --git a/lib/strdup.c b/lib/strdup.c --- a/lib/strdup.c +++ b/lib/strdup.c @@ -16,8 +16,8 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifdef HAVE_CONFIG_H -#include +#if HAVE_CONFIG_H +# include #endif #if defined _LIBC || defined STDC_HEADERS @@ -35,7 +35,9 @@ # define __strdup strdup #endif -/* Duplicate S, returning an identical malloc'd string. */ +/* Duplicate S, returning an identical malloc'd string. + Return NULL if out of memory. */ + char * __strdup (const char *s) {