SUSER(K) UNIX System V SUSER(K)
Name
suser - determines if current user is the super-user
Syntax
int
suser()
Description
The suser routine determines whether the user associated
with the currently executing process is the super-user. This
can be useful, for example, in determining whether special
device operations (such as disk formatting) are allowed.
Return Value
suser returns 0 if the current user is not the super-user
and 1 if the user is the super-user.
(printed 7/6/89)