c函数习记

1,user groups 篇幅 the length of an article;

  fgetgrent(从指定的文件来读取组格式)

  相关related functions;fgetpwent

  headers files includes:

    #include <grp.h>

    #include <sys/types.h>

  function define:

    struct group * getgrent(FILE * stream);

函数说明fgetgrent()会从参数stream指定的文件读取一行数据,然后以group结构将该数据返回,参数stream所指定的文件必须和

/etc/group相同的格式group struct请参考getgrent();

return value:返回group结构数据,如果返回NULL则表示已无数据,

  

原文地址:https://www.cnblogs.com/ruiy/p/note.html