In file useracc.h:

int usr_insys

(char* userid, int checkinvis)

Check if a user is online and attach shared segment.

Documentation

Check if a user is online and attach shared segment.

Checks if the specified user is online, taking invisibility into account. If the user is online, the corresponding shared segment is attached as the `other user'.

Parameters:
- userid The user ID to check for. It need not be in canonical form; the function will call usr_exists() internally.
checkinvis - If non-zero and the user is online but invisible, the function will pretend the user is not online. If checkinvis is zero and the user is online, invisibility is not taken into account and the function will not `lie'.
Returns:
Zero if the user is not online; one if they are.

Alphabetic index



This page was generated with the help of DOC++.