cfunc.in
Pick/BASIC 'in' functionality from C.
Syntax
int _CP_in(int* result, int expression)
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.
Example
/* The following example gets 1 character of input. */
int i;
_CP_in(&i,-1);
_CP_unix_env();
printf('%d\n', i);
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
