]> pd.if.org Git - pdclib/blobdiff - functions/stdio/freopen.c
Whitespace cleanups.
[pdclib] / functions / stdio / freopen.c
index 2d900fd510dfeab1cc26ca1ea9d046bef2b10f78..29d72eb77499b144be050080377ca7875720e971 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* freopen( const char *, const char *, FILE * )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -7,12 +5,12 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #ifndef REGTEST
 
-#include <_PDCLIB_glue.h>
-#include <stdlib.h>
-#include <string.h>
+#include "_PDCLIB_glue.h"
 
 struct _PDCLIB_file_t * freopen( const char * _PDCLIB_restrict filename, const char * _PDCLIB_restrict mode, struct _PDCLIB_file_t * _PDCLIB_restrict stream )
 {
@@ -77,7 +75,8 @@ struct _PDCLIB_file_t * freopen( const char * _PDCLIB_restrict filename, const c
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
 
 int main( void )
 {
@@ -96,8 +95,8 @@ int main( void )
 
     TESTCASE( fclose( fin ) == 0 );
     TESTCASE( fclose( fout ) == 0 );
-    remove( testfile1 );
-    remove( testfile2 );
+    TESTCASE( remove( testfile1 ) == 0 );
+    TESTCASE( remove( testfile2 ) == 0 );
 
     return TEST_RESULTS;
 }