summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-07-10 11:28:24 +0000
committerSteve Peters <steve@fisharerojo.org>2006-07-10 11:28:24 +0000
commita6cc41194dbe50598d9f33497d88c8589cd7a8c0 (patch)
treeb2660dbedb85b00f89e7a2f39dc13d7dea631713 /proto.h
parenteeb9de022215ff745a61968bf9408965f4687655 (diff)
downloadperl-a6cc41194dbe50598d9f33497d88c8589cd7a8c0.tar.gz
Add Russ Allbery's public domain implementations of strlcat and
strlcpy as Perl_my_strlcat and Perl_my_strlcpy to the Perl core. Thanks Russ! p4raw-id: //depot/perl@28525
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index c595c31b36..928ba5ead8 100644
--- a/proto.h
+++ b/proto.h
@@ -4407,6 +4407,14 @@ PERL_CALLCONV void* Perl_my_cxt_init(pTHX_ int *index, size_t size)
#endif
+#ifndef HAS_STRLCAT
+PERL_CALLCONV Size_t Perl_my_strlcat(char *dst, const char *src, Size_t size);
+#endif
+
+#ifndef HAS_STRLCPY
+PERL_CALLCONV Size_t Perl_my_strlcpy(char *dst, const char *src, Size_t size);
+#endif
+
#ifdef PERL_MAD
PERL_CALLCONV void Perl_pad_peg(const char* s)
__attribute__nonnull__(1);