PDA

View Full Version : Strange Error message


rock freak
December 2nd, 2005, 05:28 PM
Hey there guys just debugged my program i made and it has come up with a strange error message that i cant make any sense of!!!



It is as follows:

55: syntax error at end of input



and 55 is the last line this is the lines of the script




write(fname,lname, &d, &m, &y); /*write to file*/

return(0);
}


any ideas guys???

Ollie

amohanty
December 2nd, 2005, 05:58 PM
write(fname,lname, &d, &m, &y); /*write to file*/

return(0);
}

THis should be:

write(fname, lname, &d, &m, &y) {
return (0);
}


HTH
AM