projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo. How come GCC doesn't warn about this one?
[fw/pdclib]
/
functions
/
string
/
memset.c
diff --git
a/functions/string/memset.c
b/functions/string/memset.c
index 4abb466ebd763b5ef8cdfcdcc91a96037e8c4729..dc6a518737c0cd368b553452df136b772ee1405a 100644
(file)
--- a/
functions/string/memset.c
+++ b/
functions/string/memset.c
@@
-1,7
+1,5
@@
/* $Id$ */
/* $Id$ */
-/* Release $Name$ */
-
/* memset( void *, int, size_t )
This file is part of the Public Domain C Library (PDCLib).
/* memset( void *, int, size_t )
This file is part of the Public Domain C Library (PDCLib).
@@
-27,10
+25,9
@@
void * memset( void * s, int c, size_t n )
#ifdef TEST
#include <_PDCLIB_test.h>
#ifdef TEST
#include <_PDCLIB_test.h>
-int main()
+int main(
void
)
{
char s[] = "xxxxxxxxx";
{
char s[] = "xxxxxxxxx";
- BEGIN_TESTS;
TESTCASE( memset( s, 'o', 10 ) == s );
TESTCASE( s[9] == 'o' );
TESTCASE( memset( s, '_', 0 ) == s );
TESTCASE( memset( s, 'o', 10 ) == s );
TESTCASE( s[9] == 'o' );
TESTCASE( memset( s, '_', 0 ) == s );