Carlo Sogono wrote:
>
> I have a few questions about C programming under Linux:
>
> 1. where can I find info on how to use the include/hash files under /usr/include ?
>especially those that are NOT ANSI, like /usr/src/linux/include ?
Well, if you want to use these extra include files, your program may
very well become non-portable. The only things which are guaranteed
portable are the ones which ANSI defines. There's a lot of stuff there
to do all kinds of fancy programming. In /usr/src/linux/include, you'll
find stuff which is mostly of interest to people writing device drivers
or writing ioctls that push device drivers, most of which already
exist. Most of the rest are development headers for the libraries/tools
you have installed, e.g. /usr/include/netinet contains the headers
included by programs that use the BSD sockets library.
> 2. what in the world is gcc/glibc's version of turbo c's gotoxy(x,y) to reposition
>the cursor?
>
Find and install curses/ncurses. It provides nearly all of the
functionality you expect from TC's conio.h functions. Be sure to read
the documentation for this library carefully, free yourself from the
PC-isms you seem to still have... :-)
--
------------------------------------------------------------------------
| Rafael R. Sevilla [EMAIL PROTECTED] |
| Instrumentation, Robotics, and Control Laboratory |
| College of Engineering, University of the Philippines, Diliman |
------------------------------------------------------------------------
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]