View previous topic :: View next topic |
Author |
Message |
ac34856
Joined: 14 Dec 2009 Posts: 33 Location: Wales
|
Code for getch() |
Posted: Tue Feb 23, 2010 12:56 pm |
|
|
I'd like to modify the code for getc() or getch() or getchar().
Is this defined somewhere, I cant find it ? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Ttelmah Guest
|
|
Posted: Tue Feb 23, 2010 3:49 pm |
|
|
You also, don't have to.
Just write your own. Call it something like 'my_getc', and use this. This is what you do for anything like buffered I/O. The standard code, is not loaded, unless used, so don't worry about it.....
On the latest compiler, you can tell the code to use separate routines, avoiding the need to use a different name.
Best Wishes |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|