X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstring%2Fstrlcpy.c;h=bf8421a23852d9dfd91ead870c1bc9f378cf8bc1;hp=73b9165dad1199fa3734073f897ca3583ed8afc7;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=d76803848725e4de75b019158fb640722c3ea28c diff --git a/functions/string/strlcpy.c b/functions/string/strlcpy.c index 73b9165..bf8421a 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. @@ -37,11 +34,13 @@ size_t _PDCLIB_strlcpy( #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" 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 );