From 7551a1e5100c596793fa182cd26346ff971d3a4f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Mar 1998 17:57:13 +0000 Subject: Update. 1998-03-18 Andreas Jaeger * manual/memory.texi (Heap Consistency Checking): Document MALLOC_CHECK_. Based on a text by Wolfram Gloger. 1998-03-18 17:11 Zack Weinberg * manual/Makefile: Add missing rules. 1998-03-18 Ulrich Drepper * timezone/Makefile (generated): Define to remove all stamp files. * sysdeps/generic/strsep.c: Also undefine __strsep. * string/strdup.c: Undefine __strdup and strdup first. * string/strndup.c: Likewise. * string/bits/string2.h: Correct strtok_r and strsep. Add strndup optimization. * sysdeps/generic/strsep.c: Little optimization. --- string/strndup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'string/strndup.c') diff --git a/string/strndup.c b/string/strndup.c index cd971e1c6f..3f534427b4 100644 --- a/string/strndup.c +++ b/string/strndup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -30,6 +30,9 @@ char *malloc (); #endif +#undef __strndup +#undef strndup + #ifndef weak_alias # define __strndup strndup #endif -- cgit 1.4.1