Added some tests for stdio

This commit is contained in:
Tom Almeida
2018-03-15 15:28:14 +08:00
parent 7f2b720962
commit b0492eba84
7 changed files with 45 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
int main(int argc, char ** argv) {
FILE *f = fopen("stdio/fwrite.out", "w");
char *in = "Hello World!";
fputs(in, f); // calls fwrite, helpers::fwritex, internal::to_write and internal::stdio_write
fclose(f);
return 0;
}