From ce58661277a9d78c52523db27e2a7fa51720261d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 21 Nov 2002 13:33:10 +0000 Subject: [PATCH] (strdup): Tweak comment and initial #if/#include. --- lib/strdup.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) { -- 2.30.2