[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
unlock() Release File-Sharing Locks
#include <dos.h>
int unlock(handle,offset,length);
int handle; Handle associated with file
long offset; Address of area to be unlocked
long length; Length of area to be unlocked
unlock() unlocks 'length' bytes of the file associated with 'handle'.
Unlocking a file permits other processes to read or write to
previously locked bytes. To avoid error, lock() must be removed
before a file is closed. A program must release all locks before
completing.
Returns: 0 is returned on success; -1 is returned on error.
See Also:
lock()
open()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson