X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fmemset.c;h=4ee2826df79c300c856fd4cfa58214430de9c4a2;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=4abb466ebd763b5ef8cdfcdcc91a96037e8c4729;hpb=40d0246771c8e593d4b5fdc97dd87b4afd260be2;p=pdclib diff --git a/functions/string/memset.c b/functions/string/memset.c index 4abb466..4ee2826 100644 --- a/functions/string/memset.c +++ b/functions/string/memset.c @@ -1,7 +1,3 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* memset( void *, int, size_t ) This file is part of the Public Domain C Library (PDCLib). @@ -27,10 +23,9 @@ void * memset( void * s, int c, size_t n ) #ifdef TEST #include <_PDCLIB_test.h> -int main() +int main( void ) { char s[] = "xxxxxxxxx"; - BEGIN_TESTS; TESTCASE( memset( s, 'o', 10 ) == s ); TESTCASE( s[9] == 'o' ); TESTCASE( memset( s, '_', 0 ) == s );