🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Has anyone had this Debug Error in VC++?

Started by
0 comments, last by GameDev.net 24 years, 7 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,
Advertisement
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