Node:Netgroup Membership, Previous:Lookup Netgroup, Up:Netgroup Database
It is often not necessary to scan the whole netgroup since often the only interesting question is whether a given entry is part of the selected netgroup.
int innetgr (const char *netgroup, const char *host, const char *user, const char *domain) | Function |
This function tests whether the triple specified by the parameters
hostp, userp, and domainp is part of the netgroup
netgroup. Using this function has the advantage that
Any of the pointers hostp, userp, and domainp can be
The return value is |