From: roland Date: Wed, 27 Sep 1995 16:22:05 +0000 (+0000) Subject: Declare __stpcpy. X-Git-Tag: libc-951016~129 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=89b7213766574714ed05ca10c6ded9742ff3cd85 Declare __stpcpy. --- diff --git a/string/string.h b/string/string.h index 564adcce2a..0b6aa96b18 100644 --- a/string/string.h +++ b/string/string.h @@ -156,10 +156,6 @@ extern int strcasecmp __P ((__const char *__s1, __const char *__s2)); extern char *strsep __P ((char **__stringp, __const char *__delim)); #endif -/* Copy no more than N characters of SRC to DEST, returning the address of - the last character written into DEST. */ -extern char *__stpncpy __P ((char *__dest, __const char *__src, size_t __n)); - #ifdef __USE_GNU /* Compare no more than N chars of S1 and S2, ignoring case. */ extern int strncasecmp __P ((__const char *__s1, __const char *__s2, @@ -169,16 +165,14 @@ extern int strncasecmp __P ((__const char *__s1, __const char *__s2, extern char *strsignal __P ((int __sig)); /* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */ +extern char *__stpcpy __P ((char *__dest, __const char *__src)); extern char *stpcpy __P ((char *__dest, __const char *__src)); /* Copy no more than N characters of SRC to DEST, returning the address of the last character written into DEST. */ +extern char *__stpncpy __P ((char *__dest, __const char *__src, size_t __n)); extern char *stpncpy __P ((char *__dest, __const char *__src, size_t __n)); -#ifdef __OPTIMIZE__ -#define stpncpy(dest, src, n) __stpncpy ((dest), (src), (n)) -#endif - /* Sautee STRING briskly. */ extern char *strfry __P ((char *__string));