Files
exercism/c/space-age/src/space_age.h
2021-08-09 10:50:11 +02:00

28 lines
430 B
C

#ifndef SPACE_AGE_H
#define SPACE_AGE_H
#include <stdint.h>
typedef enum planet {
MERCURY = 0,
VENUS,
EARTH,
MARS,
JUPITER,
SATURN,
URANUS,
NEPTUNE,
} planet_t;
float age(planet_t planet, int64_t seconds);
/* See GNUmakefile below for explanation
* https://github.com/braoult/exercism/blob/master/c/templates/GNUmakefile
*/
#ifdef TESTALL
#undef TEST_IGNORE
#define TEST_IGNORE() {}
#endif
#endif