cfunc.sleep C Function/C Functions

cfunc.sleep

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

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Syntax int _CP_sleep(CPSTR* string)
Options
Example
/* sleep 5 seconds */

CPSTR * s = _CP_mkstr("5");
_CP_sleep(s);
_CP_str_free(s);
Purpose
Related cfunc.introduction