cfunc.in C Function/C Functions

cfunc.in

Command cfunc.in 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)
Options
Example
/* The following example gets 1 character of input. */

int i;

_CP_in(&i,-1);
_CP_unix_env();
printf("%dn", i);
Purpose
Related cfunc.introduction