Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/string/stpcpy.c
Show All 34 Lines | |||||
static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93"; | static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93"; | ||||
#endif /* LIBC_SCCS and not lint */ | #endif /* LIBC_SCCS and not lint */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <string.h> | #include <string.h> | ||||
char * | char * | ||||
stpcpy(char * __restrict to, const char * __restrict from) | (stpcpy)(char * __restrict to, const char * __restrict from) | ||||
{ | { | ||||
for (; (*to = *from); ++from, ++to); | for (; (*to = *from); ++from, ++to); | ||||
return(to); | return(to); | ||||
} | } |