summary refs log tree commit diff stats
path: root/c/space-age/src/space_age.h
blob: 5c96478f10ab78bd0c56b89238fb0a845d1591ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SPACE_AGE_H
#define SPACE_AGE_H

#include <stdint.h>

typedef enum {
   MERCURY,
   VENUS,
   EARTH,
   MARS,
   JUPITER,
   SATURN,
   URANUS,
   NEPTUNE,
} planet_t;

float age(planet_t planet, int64_t seconds);

#endif