basic.%chown

C Function/BASIC Program, Releases: AP/Unix

Changes owner and group ID.

Syntax

variable=%chown(string, owner, group)

Description

changes the owner ID and group ID of the file 'string' to the values specified in 'owner' and 'group' respectively.

Example

if %chown( '/tmp/ap.log', 2000, 0) < 0 then
crt 'Cannot change owner'; stop
end

See Also

Command Name Type Description
basic.cfunc Definition can be called from a Pick/BASIC program or subroutine in AP/DOS and AP/Unix implementations using a syntax similar to that of normal C.
basic.cfunction Definition Declare a list of C functions.

User Comments

What do you think?

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

Login to leave your comments.