This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unbuffered line input and the GNU library


I'm new to C, learning from a beginner's book.  The book mentions in passing
that unbuffered line input can be accomplished with the non-standard getch()
function.  However, I did a grep on every *.h file on my computer and wasn't
able to locate the function's declaration.  A message in this list's archive
hinted that getch() might be in the 'ncurses', 'curses', or 'termcap' header
files.  However, these don't seem to exist in my library either.  I looked
on the web for some kind of documentation for getch() and that proved
fruitless as well.  So I have some basic questions:

1)  Where are all the GNU C library functions documented?

2)  Where can I download the GNU C library functions from and how do I
install them?  I tried 'apt-get install ncurses' but I got some funky
message about ncurses being obsoleted or not available.

3)  If I'm going in the wrong direction, my question is: How do you perform
unbuffered line input with the GNU C library.

I'm running Debian/Woody, GCC version 2.95.4 (Debian prerelease).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]