#include #include #include "heure_approximative.h" static void usage(char *s) { fprintf(stderr, "Usage: %s «heure» «minute»\n", s); exit(EXIT_FAILURE); } int main(int argc, char *argv[]) { if (argc != 3 ) usage(argv[0]); if (argc == 3) printf("Il est %s.\n", heure_approximative(strtol(argv[1], NULL, 10), strtol(argv[2], NULL, 10))); return EXIT_SUCCESS; }