summaryrefslogtreecommitdiff
path: root/strlcpy.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-10-28 14:12:54 +1000
committerDamien Miller <djm@mindrot.org>1999-10-28 14:12:54 +1000
commite413cba972feb60d3d4d104c0c93320435610d1b (patch)
treed712398819471c56f89ea3fc7a4fa5fb8db38690 /strlcpy.c
parent062307657e30c9b970514eb53b4b743f9d571231 (diff)
Disabled code based on autoconf tests
Diffstat (limited to 'strlcpy.c')
-rw-r--r--strlcpy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/strlcpy.c b/strlcpy.c
index 300a28bc3..4df4080d6 100644
--- a/strlcpy.c
+++ b/strlcpy.c
@@ -34,6 +34,9 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp
34#include <sys/types.h> 34#include <sys/types.h>
35#include <string.h> 35#include <string.h>
36 36
37#include "config.h"
38#ifndef HAVE_STRLCPY
39
37/* 40/*
38 * Copy src to string dst of size siz. At most siz-1 characters 41 * Copy src to string dst of size siz. At most siz-1 characters
39 * will be copied. Always NUL terminates (unless siz == 0). 42 * will be copied. Always NUL terminates (unless siz == 0).
@@ -66,3 +69,5 @@ size_t strlcpy(dst, src, siz)
66 69
67 return(s - src - 1); /* count does not include NUL */ 70 return(s - src - 1); /* count does not include NUL */
68} 71}
72
73#endif /* !HAVE_STRLCPY */