X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrlcpy.c;h=6739f85854135ede3a4d91cc911d45a9ee85294e;hb=5d2d7d278a2fabd52a252676c6e5b1bb9be630c7;hp=73b9165dad1199fa3734073f897ca3583ed8afc7;hpb=d76803848725e4de75b019158fb640722c3ea28c;p=pdclib diff --git a/functions/string/strlcpy.c b/functions/string/strlcpy.c index 73b9165..6739f85 100644 --- a/functions/string/strlcpy.c +++ b/functions/string/strlcpy.c @@ -1,7 +1,4 @@ -/* strlcpy( - char *_PDCLIB_restrict _Dst, - const char *_PDCLIB_restrict _Src, - size_t _DstSize) +/* strlcpy( char *, const char *, size_t ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -41,7 +38,9 @@ size_t _PDCLIB_strlcpy( int main( void ) { +#ifndef REGTEST char destbuf[10]; +#endif TESTCASE_NOREG( strlcpy(NULL, "a", 0) == 2 ); TESTCASE_NOREG( strlcpy(destbuf, "a", 10) == 2 ); TESTCASE_NOREG( strcmp(destbuf, "a") == 0 );