16 Novembre

This commit is contained in:
Adrian POURCHOT 2022-11-16 15:31:49 +01:00
parent 2fe948b2ab
commit 62d68f4ceb
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main() {
time_t ts=time(NULL);
struct tm* date = localtime (&ts);
printf("Nous sommes le %d/%d/%d.\n",date->tm_year+1900,date->tm_mon,date->tm_hour);
return 0;
}

View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <grp.h>
int main() {
struct group student = getgrnam(etc/group/students22);
printf("%s",student.gr_mem);
return 0;
}

View File

@ -0,0 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
struct enregistrement{
char champs1;
char champs2;
char champs3;
};
int main() {
struct enregistrement bob;
printf("%d\n",sizeof bob);
return 0;
}