Advertisement

Has anyone had this Debug Error in VC++?

Started by November 02, 1999 11:42 AM
0 comments, last by GameDev.net 24 years, 10 months ago
I was wondering if anyone has had a Debug error saying it was in fgetc.c before, my program would then lock up, Ive checked how I used fgetc and it looks alright,
If anyone knows anything please let me know :-),
Thanks,
I think when you try to read from a NULL file it will abort in fgetc.c, at least it's done that to me:

FILE *tfp = NULL;
char tstr[190];
fgets(tstr, 7, tfp);

It might even do this when tfp is initialized to something besides NULL (like cbcbcbcbcb).
-ns

-ns-

This topic is closed to new replies.

Advertisement