From: Jim Meyering Date: Thu, 21 Nov 2002 13:33:10 +0000 (+0000) Subject: (strdup): Tweak comment and initial #if/#include. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce58661277a9d78c52523db27e2a7fa51720261d;p=pspp (strdup): Tweak comment and initial #if/#include. --- diff --git a/lib/strdup.c b/lib/strdup.c index 559df60e29..e852934e17 100644 --- 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 @@ char *memcpy (); # 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) {