debut TP19
This commit is contained in:
11
DEV1.1/TP19/numero.c
Normal file
11
DEV1.1/TP19/numero.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
|
||||
|
||||
int main(void) {
|
||||
struct passwd *info=getpwnam("felix-vi");
|
||||
printf("Votre uid est %lu\n",(unsigned long) info->pw_uid);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user