exercism/c/resistor-color/resistor_color.h

23 lines
261 B
C

#ifndef RESISTOR_COLOR_H
#define RESISTOR_COLOR_H
typedef enum {
BLACK,
BROWN,
RED,
ORANGE,
YELLOW,
GREEN,
BLUE,
VIOLET,
GREY,
WHITE
} resistor_band_t;
int color_code(resistor_band_t color);
const resistor_band_t *colors(void);
#endif