Pristine Ack-5.5
[Ack-5.5.git] / modules / src / string / strcat.c
1 /* $Id: strcat.c,v 1.5 1994/06/24 11:22:50 ceriel Exp $ */
2 /*
3  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4  * See the copyright notice in the ACK home directory, in the file "Copyright".
5  */
6 /* append t to s
7 */
8
9 #include "ack_string.h"
10
11 char *
12 strcat(s, t)
13         register char *s;
14         register _CONST char *t;
15 {
16         register char *b = s;
17
18         while (*s++)
19                 ;
20         s--;
21         while (*s++ = *t++)
22                 ;
23         return b;
24 }