getopt.h: Compiling Linux C-Code in Windows
getopt() is actually a really simple function. I made a github gist for it, code from here is below too #include <string.h> #include <stdio.h> int opterr = 1, /* if error message should be printed */ optind = 1, /* index into parent argv vector */ optopt, /* character checked for validity */ optreset; /* … Read more