diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-07-10 11:28:24 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-07-10 11:28:24 +0000 |
commit | a6cc41194dbe50598d9f33497d88c8589cd7a8c0 (patch) | |
tree | b2660dbedb85b00f89e7a2f39dc13d7dea631713 /proto.h | |
parent | eeb9de022215ff745a61968bf9408965f4687655 (diff) | |
download | perl-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |