Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/string/strcat.c
Show All 32 Lines | |||||
static char sccsid[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93"; | static char sccsid[] = "@(#)strcat.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 * | ||||
strcat(char * __restrict s, const char * __restrict append) | (strcat)(char * __restrict s, const char * __restrict append) | ||||
{ | { | ||||
char *save = s; | char *save = s; | ||||
for (; *s; ++s); | for (; *s; ++s); | ||||
while ((*s++ = *append++)); | while ((*s++ = *append++)); | ||||
return(save); | return(save); | ||||
} | } |