1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
fseek(F, -2, SEEK_END);
caractereActuel = fgetc(F);
FF = caractereActuel * 10;
fseek(F, -1, SEEK_END);
caractereActuel = fgetc(F);
m3 = caractereActuel + FF;
somme =((((m2 * 60 ) + ( h2 )) - ((m1 * 60 ) + ( h1 ))) + (((m4 * 60 ) + ( h4 )) - ((m3 * 60 ) + ( h3 ))));
sprintf(s2,"%s",somme);
fclose(F);
enregistrement(s2);
}
void enregistrement(sLabel)
{
FILE* F = fopen("compta.html","r+");
fseek(F, -27, SEEK_END);
fprintf(F,"<td><FONT COLOR=#0000FF>%s</FONT></td>", sLabel);
fprintf(F,"</tr></table></body></html>");
fclose(F);
} |
Partager