alaios
07-14-2005, 09:23 AM
Hi i have the following function declaration
void logfile(char *string,FILE *fp){
....
}
If i want to call it and dont pass any argument for the file what should i do?
I have tried the following and didnt worked
logfile(mystring,void)
then i have tried the
logfile(mystring,NULL) and worked
can u plz shed some light on this .... and explain me why?
Thx a lot have a nice day
void logfile(char *string,FILE *fp){
....
}
If i want to call it and dont pass any argument for the file what should i do?
I have tried the following and didnt worked
logfile(mystring,void)
then i have tried the
logfile(mystring,NULL) and worked
can u plz shed some light on this .... and explain me why?
Thx a lot have a nice day