strlcat.c (80274) | strlcat.c (86170) |
---|---|
1/* $OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $ */ 2 3/* 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) | 1/* $OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $ */ 2 3/* 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) |
31static char *rcsid = "$OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $"; | 31static char *rcsid = "$OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $"); |
32#endif /* LIBC_SCCS and not lint */ | 32#endif /* LIBC_SCCS and not lint */ |
33#ifndef lint 34static const char rcsid[] = 35 "$FreeBSD: head/sys/libkern/strlcat.c 80274 2001-07-24 11:34:22Z kris $"; 36#endif | 33#include <sys/cdefs.h> 34__FBSDID("$FreeBSD: head/sys/libkern/strlcat.c 86170 2001-11-07 19:55:16Z obrien $"); |
37 38#include <sys/types.h> 39#include <string.h> 40 41/* 42 * Appends src to string dst of size siz (unlike strncat, siz is the 43 * full size of dst, not space left). At most siz-1 characters 44 * will be copied. Always NUL terminates (unless siz <= strlen(dst)). --- 33 unchanged lines hidden --- | 35 36#include <sys/types.h> 37#include <string.h> 38 39/* 40 * Appends src to string dst of size siz (unlike strncat, siz is the 41 * full size of dst, not space left). At most siz-1 characters 42 * will be copied. Always NUL terminates (unless siz <= strlen(dst)). --- 33 unchanged lines hidden --- |