X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrncat.c;h=ba20edc14b46ae32207e50ce3e7b3a44a8ea35c7;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=f05a9ec7239cf19cf53c14c5ef1a78e0c5d028b3;hpb=b533867fc9062c9f88f94a1de99ef78c6b7e91a1;p=pdclib diff --git a/functions/string/strncat.c b/functions/string/strncat.c index f05a9ec..ba20edc 100644 --- a/functions/string/strncat.c +++ b/functions/string/strncat.c @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* strncat( char *, const char *, size_t ) This file is part of the Public Domain C Library (PDCLib). @@ -33,12 +29,12 @@ char * strncat( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, si #endif #ifdef TEST -#include <_PDCLIB_test.h> -int main() +#include "_PDCLIB_test.h" + +int main( void ) { char s[] = "xx\0xxxxxx"; - BEGIN_TESTS; TESTCASE( strncat( s, abcde, 10 ) == s ); TESTCASE( s[2] == 'a' ); TESTCASE( s[6] == 'e' ); @@ -60,4 +56,5 @@ int main() TESTCASE( s[8] == '\0' ); return TEST_RESULTS; } + #endif