X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fstring%2Fmemset.c;fp=functions%2Fstring%2Fmemset.c;h=753a33320fc4db576d23c9fd12a4724989b4c2d6;hb=afa8a6319c6dfd6fe35cbfefa007de37419a8f9d;hp=735a8e60623dc1f9ebeb2cbf8e7f0a218e2efc7e;hpb=7cc28bc6e8bab997b8c69bd1c7bae6a5379e4bab;p=fw%2Fpdclib diff --git a/functions/string/memset.c b/functions/string/memset.c index 735a8e6..753a333 100644 --- a/functions/string/memset.c +++ b/functions/string/memset.c @@ -25,7 +25,7 @@ void * memset( void * s, int c, size_t n ) int main() { - char s[10] = "xxxxxxxxx"; + char s[] = "xxxxxxxxx"; BEGIN_TESTS; TESTCASE( memset( s, 'o', 10 ) == s ); TESTCASE( s[9] == 'o' );