cfunc.lock

C Function/C Functions, Releases: AP 6.1

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

Command Name Type Description
cfunc.introduction Introductory Overview
cfunc.unlock C Function Pick/BASIC 'unlock' functionality from C.
cfunc.unlock_all C Function Pick/BASIC 'unlock' functionality from C.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.