Created
November 13, 2014 10:08
-
-
Save JubbaSmail/38528b8f0f77759096fd 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 DeleteFile DeleteFileW | |
| #else | |
| #define DeleteFile DeleteFileA | |
| #endif | |
| int main(int argc, LPTSTR argv[]) | |
| { | |
| if (argc != 2) { | |
| fprintf(stderr, "Usage: myDel filename\n"); | |
| return 1; | |
| } | |
| DeleteFile(argv[1]); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment