I have a program which I wish to modify. It used to be run from the command line, but now I wish to change this so it can be used as a function.
The program has complex argument processing so I want to pass my paramters to as if it were being called by the OS as a program.
I have tried to store data in a array and pass it through though it, but hasn't worked in the manner it should.
I thought argv was a char array but this does not seem to be the case.
How should I pass parameters into this function using the argc, argv protocol?