Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

conio.h

Name: Anonymous 2011-10-11 12:04

I have a feeling we were taught C very, very wrong. The only environment we were allowed to use was Borland and a few nonstandard libraries were used on a daily basis. Now I try to compile an old program using Pelles and sure enough, every function call from conio.h is missing prototypes.

Thing is, conio.h is right there in the Include folder. How can I... well, include it? Really I have no idea. It's not that I want to keep working outside of the standard; I'd just like to run a couple those programs for old times' sake (can't install Borland btw)

Name: op 2011-10-11 19:01

>>10
That won't work you fuckwit. What he needs to do is having something like
It's already been solved. Taking a closer look at conio.h itself, all functions are declared exactly as I used them back then, but starting with an underscore. And instead of changing every getch() to _getch() and every cprintf to _cprintf and such inanity, you can just check an environment option allowing for compatibility names.

Also oh my god why did I ever try to create a snake game in console, my eyes are bleeding piss

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List