DEV/BUT1/DEV1.1/Structures/3.c
2024-02-01 13:55:03 +01:00

10 lines
182 B
C

#include <stdlib.h>
#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>
int main(void){
struct passwd *reponse = getpwnam("stiti");
printf("%d\n",reponse->pw_uid);
}