Ajout des TP

This commit is contained in:
stiti
2024-02-01 13:55:03 +01:00
parent 4fe273c309
commit 113583b37a
228 changed files with 7094 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main(void){
struct timespec req;
req.tv_sec = 0;
req.tv_nsec = 500000000; /* 0.5 secondes*/
fputs("E",stderr);
nanosleep(&req,NULL);
fputs("R",stderr);
nanosleep(&req,NULL);
fputs("R",stderr);
nanosleep(&req,NULL);
fputs("E",stderr);
nanosleep(&req,NULL);
fputs("U",stderr);
nanosleep(&req,NULL);
fputs("R",stderr);
}