I have a codein which i want to do the following:
main(int argc, char *argv[])
{
fp1=fopen(argv[1], "w")
function(para1, para2, ??)
}
function(para1, para2, ??)
{
fp2= fopen(argv[2], "r")
}
So eesentially i want to pass a few parameters and the pointer to the function. I dont know how to fill those ??. Should i be passing the address &argv to the function ? I tried some things but i cant figure it out.