]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/stdio/tmpfile.c
Whitespace cleanups.
[pdclib] / platform / example / functions / stdio / tmpfile.c
index 432e3b97fe0a4a2e512d85cb51645a573afb1d4e..cb942ff345114d58680939725c8777cacf2d230b 100644 (file)
@@ -8,12 +8,12 @@
 
 #ifndef REGTEST
 
+#include "_PDCLIB_glue.h"
+
 #include <inttypes.h>
 #include <stdlib.h>
 #include <string.h>
 
-#include "_PDCLIB_glue.h"
-
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -47,7 +47,7 @@ struct _PDCLIB_file_t * tmpfile( void )
            generate the filename candidate, which is *also* platform-dependent.
         */
         unsigned int random;
-        fscanf( randomsource, "%u", &random ); 
+        fscanf( randomsource, "%u", &random );
         sprintf( filename, "/tmp/%u.tmp", random );
         /* Check if file of this name exists. Note that fopen() is a very weak
            check, which does not take e.g. access permissions into account
@@ -86,7 +86,9 @@ struct _PDCLIB_file_t * tmpfile( void )
 #endif
 
 #ifdef TEST
+
 #include "_PDCLIB_test.h"
+
 #include <string.h>
 
 int main( void )
@@ -110,4 +112,3 @@ int main( void )
 }
 
 #endif
-