/etc/passwd의 정보를 읽어내어 passwd라는 구조체로 정보를 읽어내는 getpwent()라는 함수가 있잖아요.
그런데 /etc/group 파일의 정보를 읽어내는 함수는 없는건가요?
getgrent(3) 보세요.
기능이 비슷하니 이름도 거의 같네요. get -pw- ent, get -gr- ent.. 답변 감사합니다. 문제가 해결되었습니다.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
getgrent
getgrent(3) 보세요.
감사합니다.
기능이 비슷하니 이름도 거의 같네요.
get -pw- ent,
get -gr- ent..
답변 감사합니다. 문제가 해결되었습니다.
댓글 달기