DEV/BUT1/DEV1.1/Structures/3.c

10 lines
182 B
C
Raw Normal View History

2024-02-01 13:55:03 +01:00
#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);
}