]> pd.if.org Git - pdclib/blobdiff - functions/string/memset.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / string / memset.c
index 735a8e60623dc1f9ebeb2cbf8e7f0a218e2efc7e..4946ec487812e3bd681ea0fe91da4520ce7f8d64 100644 (file)
@@ -1,7 +1,3 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
 /* memset( void *, int, size_t )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -10,6 +6,8 @@
 
 #include <string.h>
 
+#ifndef REGTEST
+
 void * memset( void * s, int c, size_t n )
 {
     unsigned char * p = (unsigned char *) s;
@@ -20,13 +18,14 @@ void * memset( void * s, int c, size_t n )
     return s;
 }
 
+#endif
+
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 
-int main()
+int main( void )
 {
-    char s[10] = "xxxxxxxxx";
-    BEGIN_TESTS;
+    char s[] = "xxxxxxxxx";
     TESTCASE( memset( s, 'o', 10 ) == s );
     TESTCASE( s[9] == 'o' );
     TESTCASE( memset( s, '_', 0 ) == s );