strcat.c (77117) | strcat.c (86170) |
---|---|
1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35static char sccsid[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93"; 36#endif /* LIBC_SCCS and not lint */ | 1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35static char sccsid[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93"; 36#endif /* LIBC_SCCS and not lint */ |
37#ifndef lint 38static const char rcsid[] = 39 "$FreeBSD: head/lib/libc/string/strcat.c 77117 2001-05-24 08:47:42Z obrien $"; 40#endif | 37#include <sys/cdefs.h> 38__FBSDID("$FreeBSD: head/lib/libc/string/strcat.c 86170 2001-11-07 19:55:16Z obrien $"); |
41 42#include <string.h> 43 44char * 45strcat(s, append) 46 register char *s; 47 register const char *append; 48{ 49 char *save = s; 50 51 for (; *s; ++s); 52 while ((*s++ = *append++)); 53 return(save); 54} | 39 40#include <string.h> 41 42char * 43strcat(s, append) 44 register char *s; 45 register const char *append; 46{ 47 char *save = s; 48 49 for (; *s; ++s); 50 while ((*s++ = *append++)); 51 return(save); 52} |