I'm writing a small application in C that takes two parameters. One is a filename, the other a number, and they may be specified in random order.
./main filename 12345
and
./main 12345 filename
should both work.
How can I easily determine which is which when I know the filename starts with a character?