_CP_sleep is equivalent to the sleep(string) BASIC statement.
int _CP_sleep(CPSTR* string)
This function returns -1 if an error occurs. The error code is contained in _CP_errno.
/* sleep 5 seconds */ CPSTR * s = _CP_mkstr("5"); _CP_sleep(s); _CP_str_free(s);