33 lines
417 B
C
Raw Permalink 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-19 13:34:32 +01:00
couleur white;
2023-12-12 17:27:44 +01:00
2023-12-24 20:21:24 +01:00
short int* compteur = NULL;
char a[20];
2023-12-12 17:27:44 +01:00
2023-12-12 17:27:44 +01:00
2023-12-24 20:21:24 +01:00
white = CouleurParComposante(255,255,255);
ChoisirCouleurDessin(white);
2023-12-24 20:21:24 +01:00
compteur = malloc(sizeof(short int));
*compteur = 0;
2023-12-24 20:21:24 +01:00
sprintf(a, "%hd", *compteur);
2023-12-12 17:27:44 +01:00
2023-12-24 20:21:24 +01:00
EcrireTexte(1310, 650, a, 2);
2023-12-13 17:00:25 +01:00
2023-12-24 20:21:24 +01:00
return compteur;
2023-12-13 17:00:25 +01:00
}
2023-12-12 17:27:44 +01:00