X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstring%2Fstrcpy.c;h=8276dd745aecebc4b525fabb0ba86641b66e7594;hp=c0ca9f039d520ff8991116673dd7a4874026a234;hb=12e17136786afb1775c9dc946cbe41f5e230c24a;hpb=9489b93733c00be5a94e2ee5b349457c78184a1a diff --git a/functions/string/strcpy.c b/functions/string/strcpy.c index c0ca9f0..8276dd7 100644 --- a/functions/string/strcpy.c +++ b/functions/string/strcpy.c @@ -24,10 +24,9 @@ char * strcpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 ) #ifdef TEST #include <_PDCLIB_test.h> -int main() +int main( void ) { char s[] = "xxxxx"; - BEGIN_TESTS; TESTCASE( strcpy( s, "" ) == s ); TESTCASE( s[0] == '\0' ); TESTCASE( s[1] == 'x' );