24 lines
309 B
C
Raw Normal View History

2023-12-12 17:27:44 +01:00
#include <stdlib.h>
#include <graph.h>
#include <stdio.h>
#include "score_init.h"
2023-12-13 17:00:25 +01:00
short int* score_init(void) {
2023-12-12 17:27:44 +01:00
2023-12-13 17:00:25 +01:00
short int* compteur = NULL;
compteur = malloc(sizeof(short int));
2023-12-12 17:27:44 +01:00
*compteur = 0;
2023-12-13 17:00:25 +01:00
char a[20];
2023-12-12 17:27:44 +01:00
2023-12-13 17:00:25 +01:00
sprintf(a, "%d", *compteur);
2023-12-12 17:27:44 +01:00
2023-12-13 17:00:25 +01:00
EcrireTexte(1250, 600, a, 2);
return compteur;
}
2023-12-12 17:27:44 +01:00