Embedded Systems Building Blocks, Second Edition

Appendix D: HPLISTC and TO

HPLISTC and TO are MS-DOS utilities that are provided in both executable and source form for your convenience.

D.00 HPLISTC

HPLISTC is an MS-DOS utility to print C source files on an HP Laserjet printer. HPLISTC will print your source code in compressed mode; 17 characters per inch (CPI). An 8 1/2" 11" page ( portrait) will accommodate up to 132 characters. An 11" 8 1/2" page ( landscape) will accommodate up to 175 characters. Once the source code is printed, HPLISTC return the printer to its normal print mode.

The main directory for HPLISTC is C:\SOFTWARE\HPLISTC. HPLISTC is provided in two files: HPLISTC.EXE (see C:\SOFTWARE\HPLISTC\EXE) is the MS-DOS executable and HPLISTC.C (see C:\SOFTWARE\HPLISTC\SOURCE) is the source code.

HPLISTC prints the current date and time, the filename, its extension, and the page number at the top of each page. An optional title can also be printed at the top of each page. As HPLISTC prints the source code, it looks for two special comments: /*$TITLE=*/ or /*$title=*/ and /*$PAGE*/ or /*$page*/.

The /*$TITLE=*/ comment is used to specify the title to be printed on the second line of each page. You can define a new title for each page by using the /*$TITLE=*/ comment. The new title will be printed at the top of the next page. For example:

/*$TITLE=Matrix Keyboard Driver*/ 

will set the title...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Barcode Printers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.