unlockFile()  write()

Chapter 5: General Objects and Methods

unlockSeg()

Description

Unlocks the specified portion of an I/O file object’s associated file.

Syntax

unlockSeg(long size);

Parameter

Description

size

Number of bytes to examine for an unlock.

Return value

Integer. Returns 1 for success, and 0 for failure, indicating that the segment could not unlock or that the segment was not locked initially.

Usage

Pointer to object

Object

long num;num = 875piof->unlockSeg(num);

my_iofobj.unlockSeg(num);





Copyright © 2005. Sybase Inc. All rights reserved. write()

View this book as PDF