DEV_BUT1/DEV1.1S/TP02/groupe.c
2023-02-08 11:18:16 +01:00

14 lines
278 B
C

#include <stdio.h>
#include <stdlib.h>
#include <grp.h>
#include <sys/types.h>
#include <string.h>
int main(void){
int i = 0;
struct group* groupe = getgrnam("students22");
while(groupe->gr_mem[i] != NULL){
printf("%s", groupe->gr_mem[i]);
i++;
}
return EXIT_SUCCESS;
}