cfunc.lock
Pick/BASIC 'lock' functionality from C.
Syntax
int _CP_lock(int type, int expression)
Description
equivalent to the Pick/BASIC statement: lock
The variant of lock used depends upon the type parameter:
Type Pick/BASIC statement
_CP_LOCK lock expression
_CP_LOCK_W lock expression else * return -1
This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Example
The following example sets basic lock 1.
_CP_lock(_CP_LOCK,1);
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.
