cfunc.sleep
Pick/BASIC 'sleep' functionality from C.
Syntax
int _CP_sleep(CPSTR* string)
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.
Example
/* sleep 5 seconds */
CPSTR * s = _CP_mkstr('5');
_CP_sleep(s);
_CP_str_free(s);
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.
