Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <grp.h>
int
main (int argc, char **argv)
{
int v = 0;
char buf[200];
struct group *grp;
if (argc < 2)
{
printf ("Error: Please specify a group name\n");
return -1;
}
grp = getgrnam (argv[1]);
while (*grp->gr_mem != NULL)
{
sprintf (buf, "%d: %s", v++, *grp->gr_mem);
printf ("%s for group %s\n", buf, grp->gr_name);
grp->gr_mem++;
}
return 0;
}