1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 23 unchanged lines hidden (view full) --- 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)strncat.c 8.1 (Berkeley) 6/4/93"; 39#endif /* LIBC_SCCS and not lint */ |
40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/lib/libc/string/strncat.c 86170 2001-11-07 19:55:16Z obrien $"); 42 |
43#include <string.h> 44 45/* 46 * Concatenate src on the end of dst. At most strlen(dst)+n+1 bytes 47 * are written at dst (at most n+1 bytes being appended). Return dst. 48 */ 49char * 50strncat(dst, src, n) --- 19 unchanged lines hidden --- |