-
-
Save piscisaureus/3ab4a851ce3074b7ab4f5f9a42effb72 to your computer and use it in GitHub Desktop.
Example
This file contains 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
/* clang getcmd.c -o getcmd.exe -Os */ | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
int main() { | |
const wchar_t* wcmd = (wchar_t*) GetCommandLineW(); | |
printf("%ls\n", wcmd); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment