X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrcpy.c;h=e0357c89c94861521ed622c4a0e6bbb3fc15f2c3;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=c0ca9f039d520ff8991116673dd7a4874026a234;hpb=b533867fc9062c9f88f94a1de99ef78c6b7e91a1;p=pdclib diff --git a/functions/string/strcpy.c b/functions/string/strcpy.c index c0ca9f0..e0357c8 100644 --- a/functions/string/strcpy.c +++ b/functions/string/strcpy.c @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* strcpy( char *, const char * ) This file is part of the Public Domain C Library (PDCLib). @@ -22,12 +18,12 @@ char * strcpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 ) #endif #ifdef TEST -#include <_PDCLIB_test.h> -int main() +#include "_PDCLIB_test.h" + +int main( void ) { char s[] = "xxxxx"; - BEGIN_TESTS; TESTCASE( strcpy( s, "" ) == s ); TESTCASE( s[0] == '\0' ); TESTCASE( s[1] == 'x' ); @@ -37,4 +33,5 @@ int main() TESTCASE( s[5] == '\0' ); return TEST_RESULTS; } + #endif