|
|
1.1 root 1:
2:
3: getgrnam() General Function getgrnam()
4:
5:
6:
7:
8: Get group file information, by group id
9:
10: #include <grp.h>
11: ssttrruucctt ggrroouupp *ggeettggrrnnaamm(_g_n_a_m_e);
12: cchhaarr *_g_n_a_m_e;
13:
14: getgrnam searches file /etc/group for the first entry with a
15: group name of gname. It returns a pointer to the entry for gname
16: if it is found; it returns NULL for any error or if the end of
17: the file is encountered.
18:
19: ***** Files *****
20:
21: /etc/group
22: <grp.h>
23:
24: ***** See Also *****
25:
26: general functions, group
27:
28: ***** Notes *****
29:
30: All structures and information returned are in a static area in-
31: ternal to getgrnam. Therefore, information from a previous call
32: is overwritten by each subsequent call.
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.