xref: /csrg-svn/lib/libc/string/strcat.c (revision 61193)
11980Swnj /*
2*61193Sbostic  * Copyright (c) 1988, 1993
3*61193Sbostic  *	The Regents of the University of California.  All rights reserved.
435094Sbostic  *
542635Sbostic  * %sccs.include.redist.c%
61980Swnj  */
71980Swnj 
835094Sbostic #if defined(LIBC_SCCS) && !defined(lint)
9*61193Sbostic static char sccsid[] = "@(#)strcat.c	8.1 (Berkeley) 06/04/93";
1035094Sbostic #endif /* LIBC_SCCS and not lint */
1135094Sbostic 
1242181Sbostic #include <string.h>
1342181Sbostic 
141980Swnj char *
strcat(s,append)1535094Sbostic strcat(s, append)
1646613Sbostic 	register char *s;
1746613Sbostic 	register const char *append;
181980Swnj {
1935094Sbostic 	char *save = s;
201980Swnj 
2135094Sbostic 	for (; *s; ++s);
2235094Sbostic 	while (*s++ = *append++);
2335094Sbostic 	return(save);
241980Swnj }
25