| _CP_si_ | Index Level | _CP_SLEN |
| Syntax | int _CP_sleep(CPSTR* string) |
| Category | C Interface |
| Type | C Function |
| Description |
equivalent to the FlashBASIC statement: sleep(string)
This function returns -1 if an error occurs. The error code is contained in _CP_errno. |
| Options | |
| See Also | C Functions introduction |
| Example |
/* sleep 5 seconds */
CPSTR * s = _CP_mkstr("5"); _CP_sleep(s); _CP_str_free(s); |
| Warnings | |
| Compatibility | AP 6.1 |
| _CP_si_ | Index Level | _CP_SLEN |