Created
November 13, 2014 10:10
-
-
Save JubbaSmail/2cd395148058f13dfebf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <windows.h> | |
| #include <stdio.h> | |
| #if define UNICODE | |
| #define CreateDirectory CreateDirectoryW | |
| #else | |
| #define CreateDirectory CreateDirectoryA | |
| #endif | |
| int main(int argc, LPTSTR argv[]) | |
| { | |
| if (argc != 2) { | |
| fprintf(stderr, "Usage: mymkdir dirName\n"); | |
| return 1; | |
| } | |
| CreateDirectory(argv[1],NULL); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment