Original Post
In my windows app I have
int WINAPI WinMain( HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int cmdshow)
{
printf("%s\n", cmd);
}
and I can call it as just
C:\> app
C:\> app.exe
C:\> app -flag
C:\> app.exe -flag
and no matter what I get garbage. Is there any rhyme or reason to why? All I want is the string so I can grab the flags, is that too much to ask from windows
?
