summaryrefslogtreecommitdiff
path: root/lib/strdup.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2002-11-26 22:58:57 +0000
committerKarl Berry <karl@freefriends.org>2002-11-26 22:58:57 +0000
commit8ee0415dbe113fd16461ea60be8f1851e95565cc (patch)
tree1bbfde274107440a657ce36150be2914bcdb0cba /lib/strdup.c
parentecc8e81fda8d43d151d4832abe75fc92a4b2f34d (diff)
downloadgnulib-8ee0415dbe113fd16461ea60be8f1851e95565cc.tar.gz
copy strdup.c from libc again.
Diffstat (limited to 'lib/strdup.c')
-rw-r--r--lib/strdup.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/strdup.c b/lib/strdup.c
index 06260fa033..5aa09a652c 100644
--- a/lib/strdup.c
+++ b/lib/strdup.c
@@ -15,8 +15,8 @@
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#if HAVE_CONFIG_H
-# include <config.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
#endif
#if defined _LIBC || defined STDC_HEADERS
@@ -34,9 +34,7 @@ char *memcpy ();
# define __strdup strdup
#endif
-/* Duplicate S, returning an identical malloc'd string.
- Return NULL if out of memory. */
-
+/* Duplicate S, returning an identical malloc'd string. */
char *
__strdup (const char *s)
{