Is there an equivalent to getopt() in the visual studio CRT?
Or do I need to get it and compile it with my project?
Edit clarification
getopt is a utility function in the unix/linux C Run Time library for common command line parsing chores i.e. parsing arguments of the form -a -b -f someArg etc’
You can use the
getoptimplementation from the GNU C library. It’s licensed under the LGPL, which should be compatible with most software projects. See the fileposix/getopt.cin the source distribution.