diff options
Diffstat (limited to 'test/mkdirp-test.c')
-rw-r--r-- | test/mkdirp-test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/mkdirp-test.c b/test/mkdirp-test.c new file mode 100644 index 0000000..d1bcd95 --- /dev/null +++ b/test/mkdirp-test.c @@ -0,0 +1,12 @@ +#include <stdlib.h> +#include <stdio.h> +#include "mkdirp.c" + +extern int main(int argc, char* argv[]) { + if(argc != 2) { + printf("usage: %s directory\n", argv[0]); + return 1; + } + mkdir_p(argv[1]); + return 0; +} |