Suppose that I have a program named myprog, and I type this in a shell
$ myprog -z hello -m "this is a message"
The function main in myprog will receive a char** argv containing the following strings
"-z", "hello", "-m", "this is a message"
So there must be somewhere in a C library a function which takes the command line string and produces the char** argv.
My question for you, C experts, is where is this function and how is it called ?