From 52a5a9d9bd8d767bd76c02f20668e1c7d92e33f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Wed, 29 Apr 2020 22:38:41 +0200 Subject: setting up folder structure --- test/fopen_mkdir-test.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/fopen_mkdir-test.c (limited to 'test/fopen_mkdir-test.c') diff --git a/test/fopen_mkdir-test.c b/test/fopen_mkdir-test.c new file mode 100644 index 0000000..9a2acfc --- /dev/null +++ b/test/fopen_mkdir-test.c @@ -0,0 +1,14 @@ +#include +#include +#include "fopenmkdir.c" + +extern int main(int argc, char* argv[]) { + if(argc != 3) { + printf("usage: %s file_to_write string_to_write\n", argv[0]); + return 1; + } + FILE * test_file; + test_file = fopen_mkdir(argv[1], "w"); + fprintf(test_file, "%s\n", argv[2]); + return 0; +} -- cgit v1.2.3