X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstring%2Fstrlcpy.c;h=7a73f8c20e9efadd90fab9f20e3ab1c67be1c6bc;hp=73b9165dad1199fa3734073f897ca3583ed8afc7;hb=7a94eb4d268ab6780c774a50d59e8dd5e578ac7b;hpb=b5e81ad16e86e08f07ea01b0d8e57129f41b4051 diff --git a/functions/string/strlcpy.c b/functions/string/strlcpy.c index 73b9165..7a73f8c 100644 --- a/functions/string/strlcpy.c +++ b/functions/string/strlcpy.c @@ -41,7 +41,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 );