14.11 Routines Not Shown
The following is a brief description of all the subroutines of basecalc that were not shown in this chapter. All of these can be seen in full in Appendix D.
convButton
Changes the current base and converts a value, if any.
digitButton
Gets a digit and assigns it to
Value
.displayVal
Calculates appropriate format string for base.
initTty
Performs system calls to get user’s current erase, delete, and interrupt characters.
keyToWin
Translates a keycode as if a pad had been selected.
makePixmap
Makes a pixmap from bitmap data, shown and described in Chapter 6.
operButton
An operation. Either does it or waits for next value and = .
printInBase
Composes the string that should be displayed. Called from
Sprintf
.specButton
Clears a digit, an entry, or all, or toggles unsigned mode.
Sprintf
A modified version of
sprintf
, the standard C utility, which does not print in binary.Sprintf
callsprintInBase
.winPressed
Determines whether pad pressed was a digit, an operator, a conversion, or a special pad.
Get XLIB Programming Manual, Rel. 5, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.