DEV/DEV1.1/TP12:Structures/groupe.c

14 lines
212 B
C
Raw Permalink Normal View History

2022-11-16 15:31:49 +01:00
#include <stdio.h>
#include <stdlib.h>
#include <grp.h>
int main() {
2022-11-22 11:27:42 +01:00
int i = 0;
struct group etu;
etu = *getgrnam("senart22");
while (etu.gr_mem[i]!=NULL){
i++;
printf("%s",etu.gr_mem[i]);
}
2022-11-16 15:31:49 +01:00
return 0;
}