spacs age (C)
This commit is contained in:
27
c/space-age/src/space_age.h
Normal file
27
c/space-age/src/space_age.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
Reference in New Issue
Block a user