1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-09-29 00:33:04 +02:00
cdf2018-principal/chef/src/local.c

37 lines
628 B
C
Raw Normal View History

2018-04-04 16:17:13 +02:00
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <unistd.h> // sleep
2018-04-29 09:38:49 +02:00
#include "debug.h"
2018-04-04 16:17:13 +02:00
2018-04-29 09:38:49 +02:00
unsigned long int canard = 42;
double banane = 63;
char* artichaut = "Torticoli";
2018-04-04 16:17:13 +02:00
int main()
{
printf("Démarrage...\n");
srand(time(NULL));
2018-04-29 09:38:49 +02:00
configureDebug();
registerDebugVar("canard", ld, &canard);
registerDebugVar("banane", lf, &banane);
registerDebugVar("artichaut", s, &artichaut);
startDebug();
2018-04-04 16:17:13 +02:00
2018-04-29 09:38:49 +02:00
for (int i = 0; i < 2; i++) {
printf("21 %d\n", i);
canard += 3;
banane /= 2;
sleep(1);
}
2018-04-04 16:17:13 +02:00
2018-04-29 09:38:49 +02:00
deconfigureDebug();
2018-04-04 16:17:13 +02:00
return EXIT_SUCCESS;
}