I am trying to move some code from a separate binary and have it inside my main program. Unfortunately, I cannot simulate initialization variables for the main function.
How can I create argcand argvmanually? Can someone give me some examples of appointments.
as it looks like this:
int main(int argc, char *argv[])
I decided that I could assign them as follows:
int argc=1;
char *argv[0]="Example";
But that will not work. Can someone tell me how to do this?
source
share