diff --git a/essai.c b/essai.c index c716948..52fb5df 100644 --- a/essai.c +++ b/essai.c @@ -24,7 +24,8 @@ char ligne[200]; int Idatas[4]; float Fdatas[4]; FILE *fp; -time_t temps; +time_t temps, + old_temps = (time_t)0L; /* XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX */ @@ -53,18 +54,25 @@ for (idx=0; idx 60) { + fprintf(fp, "%ld %f %f %f %f\n", temps, + Fdatas[0], Fdatas[1], Fdatas[2], Fdatas[3]); + fflush(fp); + old_temps = temps; + } } } + +fclose(fp); + return 0; } /* --------------------------------------------------------------- */