Inclusion du header dans main, affichage du résultat, suppression des paramètres de main

This commit is contained in:
Hippolyte Chauvin 2023-12-03 22:40:24 +01:00
parent 06f79c1dfe
commit 97d85bd778

View file

@ -2,9 +2,11 @@
#include <stdlib.h>
#include <errno.h>
#include "calibration.h"
#define INPUT_FILE_PATH "./input.txt"
int main(int argc, char *argv[]) {
int main(void) {
unsigned int calibration_sum;
FILE *input_file;
@ -16,5 +18,7 @@ int main(int argc, char *argv[]) {
calibration_sum = get_calibration_sum(input_file);
printf("Calibration sum: %d\n", calibration_sum);
return EXIT_SUCCESS;
}