wcslcpy.c (86170) | wcslcpy.c (92986) |
---|---|
1/* 2 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 3 * 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 --- 14 unchanged lines hidden (view full) --- 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 * from OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp 28 */ 29 30#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 3 * 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 --- 14 unchanged lines hidden (view full) --- 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 * from OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp 28 */ 29 30#include <sys/cdefs.h> |
31#if 0 |
|
31#if defined(LIBC_SCCS) && !defined(lint) 32__RCSID("$NetBSD: wcslcpy.c,v 1.1 2000/12/23 23:14:36 itojun Exp $"); 33#endif /* LIBC_SCCS and not lint */ | 32#if defined(LIBC_SCCS) && !defined(lint) 33__RCSID("$NetBSD: wcslcpy.c,v 1.1 2000/12/23 23:14:36 itojun Exp $"); 34#endif /* LIBC_SCCS and not lint */ |
34__FBSDID("$FreeBSD: head/lib/libc/string/wcslcpy.c 86170 2001-11-07 19:55:16Z obrien $"); | 35#endif 36__FBSDID("$FreeBSD: head/lib/libc/string/wcslcpy.c 92986 2002-03-22 21:53:29Z obrien $"); |
35 36#include <sys/types.h> 37#include <assert.h> 38#include <wchar.h> 39 40/* 41 * Copy src to string dst of size siz. At most siz-1 characters 42 * will be copied. Always NUL terminates (unless siz == 0). --- 30 unchanged lines hidden --- | 37 38#include <sys/types.h> 39#include <assert.h> 40#include <wchar.h> 41 42/* 43 * Copy src to string dst of size siz. At most siz-1 characters 44 * will be copied. Always NUL terminates (unless siz == 0). --- 30 unchanged lines hidden --- |