28 lines
430 B
C
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
|