X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrcpy.c;h=1fd3d32b9357c7d7265a0b1ad094e788e6accfea;hb=3309ec3ad8a5db735eaa2de7f5dc6a331d8e7319;hp=c0ca9f039d520ff8991116673dd7a4874026a234;hpb=0c76deec506f54fff7326da6b1dcaef5958777ec;p=pdclib.old diff --git a/functions/string/strcpy.c b/functions/string/strcpy.c index c0ca9f0..1fd3d32 100644 --- a/functions/string/strcpy.c +++ b/functions/string/strcpy.c @@ -1,7 +1,5 @@ /* $Id$ */ -/* Release $Name$ */ - /* strcpy( char *, const char * ) This file is part of the Public Domain C Library (PDCLib). @@ -24,10 +22,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' );