June 1994
Intermediate to advanced
821 pages
24h 40m
English
The include files used in Example 14-1 are the standard ones, except for the few needed to perform system calls to get the user’s home directory, current Rubout key, etc. The <X11/Xresource.h> file is necessary to use the resource manager.
Example 14-1. basecalc — include files
#include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xresource.h> #include <X11/cursorfont.h> #include <stdio.h> #ifdef SysV #include <termio.h> #else #include <sgtty.h> #include <sys/ttychars.h> #endif SysV #include <ctype.h> #include <pwd.h> /* Global declarations file for this application */ #include "basecalc.h"
The constant definitions and global variables declared or defined in ./basecalc.h are shown above the routines in which they are used in the basecalc example program. You can take a look at the entire include file in Appendix D.
Read now
Unlock full access