BUT2/DEV/DEV1.1_suite/CM2/Q3_Ralentis.c
2023-10-23 13:23:36 +02:00

15 lines
305 B
C

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void){
struct timespec tempsDAttente;
char* message="ERREUR";
int i;
for (i=0; i<6; i++){
tempsDAttente.it_value = tempsDAttente.it_interval+1000000000;
nanosleep(tempsDAttente,NULL);
fprintf(stderr,message[i]);
}
}