summaryrefslogtreecommitdiff
path: root/strlcpy.c
diff options
context:
space:
mode:
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 */