Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
To use the termcap library in a program, you need two kinds of preparation:
On GNU systems, it suffices to include the header file `termcap.h' in each source file that uses these functions and variables.
On Unix systems, there is often no such header file. Then you must
explictly declare the variables as external. You can do likewise for
the functions, or let them be implicitly declared and cast their
values from type
int to the appropriate type.
We illustrate the declarations of the individual termcap library functions with ANSI C prototypes because they show how to pass the arguments. If you are not using the GNU C compiler, you probably cannot use function prototypes, so omit the argument types and names from your declarations.
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|