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;
|
|
|
|
}
|