C Function/C Functions

Command C Function/C Functions
Applicable release versions: AP 6.1
Category C Functions (120)
Description equivalent to the Pick/BASIC statement: in result for expression

If no "for" clause is desired, the user should pass -1 in expression.

This function returns -1 if an error occurs. The error code is contained in _CP_errno. If the timeout occurs, _CP_errno contains PE_TMOUT.
Syntax int _CP_in(int* result, int expression)
/* The following example gets 1 character of input. */

int i;

printf("%dn", i);
Related cfunc.introduction