| _CP_iconv | Index Level | _CP_index |
| Syntax | int _CP_in(int* result, int expression) |
| Category | C Interface |
| Type | C Function |
| Description |
Equivalent to the FlashBASIC 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. |
| Options | |
| See Also | C Functions introduction |
| Example |
/* The following example gets 1 character of input. */
int i; _CP_in(&i,-1); _CP_unix_env(); printf("%d\n", i); |
| Warnings | The environment must be set to _CP_pick_env() for _CP_in() to work properly. |
| Compatibility | AP 6.1 |
| _CP_iconv | Index Level | _CP_index |