xref: /csrg-svn/lib/libc/string/strcat.c (revision 42635)
11980Swnj /*
235094Sbostic  * Copyright (c) 1988 Regents of the University of California.
335094Sbostic  * All rights reserved.
435094Sbostic  *
5*42635Sbostic  * %sccs.include.redist.c%
61980Swnj  */
71980Swnj 
835094Sbostic #if defined(LIBC_SCCS) && !defined(lint)
9*42635Sbostic static char sccsid[] = "@(#)strcat.c	5.5 (Berkeley) 06/01/90";
1035094Sbostic #endif /* LIBC_SCCS and not lint */
1135094Sbostic 
1242181Sbostic #include <string.h>
1342181Sbostic 
141980Swnj char *
1535094Sbostic strcat(s, append)
1635094Sbostic 	register char *s, *append;
171980Swnj {
1835094Sbostic 	char *save = s;
191980Swnj 
2035094Sbostic 	for (; *s; ++s);
2135094Sbostic 	while (*s++ = *append++);
2235094Sbostic 	return(save);
231980Swnj }
24