summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strncpy.c
diff options
context:
space:
mode:
authormickey <>2004-11-28 07:16:54 +0000
committermickey <>2004-11-28 07:16:54 +0000
commit400dc0ede1161c72451b91080bb9b92c97ec449e (patch)
tree7341377c0ab7c6f301fccf1564b95690968413fc /src/lib/libc/string/strncpy.c
parent541933b43e7adf4fc5c7e119a699dd1380faf4cd (diff)
downloadopenbsd-400dc0ede1161c72451b91080bb9b92c97ec449e.tar.gz
openbsd-400dc0ede1161c72451b91080bb9b92c97ec449e.tar.bz2
openbsd-400dc0ede1161c72451b91080bb9b92c97ec449e.zip
repair libkern support (again) and add rcsids
Diffstat (limited to 'src/lib/libc/string/strncpy.c')
-rw-r--r--src/lib/libc/string/strncpy.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libc/string/strncpy.c b/src/lib/libc/string/strncpy.c
index 00493f4f7f..d73008c6db 100644
--- a/src/lib/libc/string/strncpy.c
+++ b/src/lib/libc/string/strncpy.c
@@ -1,3 +1,5 @@
1/* $OpenBSD: strncpy.c,v 1.5 2004/11/28 07:16:54 mickey Exp $ */
2
1/*- 3/*-
2 * Copyright (c) 1990 The Regents of the University of California. 4 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved. 5 * All rights reserved.
@@ -31,10 +33,14 @@
31 */ 33 */
32 34
33#if defined(LIBC_SCCS) && !defined(lint) 35#if defined(LIBC_SCCS) && !defined(lint)
34static char *rcsid = "$OpenBSD: strncpy.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $"; 36static char *rcsid = "$OpenBSD: strncpy.c,v 1.5 2004/11/28 07:16:54 mickey Exp $";
35#endif /* LIBC_SCCS and not lint */ 37#endif /* LIBC_SCCS and not lint */
36 38
39#if !defined(_KERNEL) && !defined(_STANDALONE)
37#include <string.h> 40#include <string.h>
41#else
42#include <lib/libkern/libkern.h>
43#endif
38 44
39/* 45/*
40 * Copy src to dst, truncating or null-padding to always copy n bytes. 46 * Copy src to dst, truncating or null-padding to always copy n bytes.