This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Unbuffered line input and the GNU library
- From: "Steve Dondley" <s at dondley dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 19 Aug 2002 22:28:17 -0400
- Subject: 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).