assoc()  close()

Chapter 5: General Objects and Methods

chmod()

Description

Changes the permissions of an I/O file object associated file.

Syntax

chmod(short mode);

Parameter

Description

mode

Integer value that identifies the new permissions. Must be four digits in length. Use heading zeros (0) to pad the length; for example, 0777.

Return value

Integer. Returns 1 for success, and 0 for failure.

Usage

Pointer to object

Object

int mode;

my_iofobj.chmod(0777);

mode = 0777;

piof_>chmod(mode);





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

View this book as PDF