cfunc.printer C Function/C Functions

cfunc.printer

Command cfunc.printer C Function/C Functions
Applicable release versions: AP 6.1
Category C Functions (120)
Description equivalent to the Pick/BASIC statement: printer expression

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Syntax int _CP_printer(int expression)
Options
Example
/*The following example prints "hi" to the printer.*/

CPSTR * s = _CP_mkstr("hi");

_CP_printer(1);
_CP_print(s);
_CP_printer(0);
_CP_printer(-1);
Purpose
Related cfunc.introduction