Adding a test case for file write/read testing etc.
authorDavid Zhu <yuzhu@cs.berkeley.edu>
Wed, 21 Apr 2010 01:27:59 +0000 (18:27 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:43 +0000 (17:35 -0700)
tests/file_test.c [new file with mode: 0644]

diff --git a/tests/file_test.c b/tests/file_test.c
new file mode 100644 (file)
index 0000000..320145d
--- /dev/null
@@ -0,0 +1,10 @@
+#include <stdio.h> 
+int main() 
+{ 
+       FILE *file; 
+       file = fopen("test.txt","w+b");
+       if (file == NULL)
+               printf ("Failed to write to file \n");
+       fprintf(file,"%s","hello, world\n"); 
+       fclose(file); 
+}