Hi ,I have a method which makes a file by using the argument list as parameters.The only problem i have is that it does not work.
Code:void openfile(struct file *p, const char * filename ){
p->output=fopen(*filename,"w");
if(p->output==NULL)
fprintf(stderr,"out of memory\n");
}
int main(int argc, char** argv) {
struct file*p=makeNewStruct();
const char * f="hey";
openfile(p,f);