exercism/c/resistor-color/resistor_color.h

24 lines
261 B
C
Raw Permalink Normal View History

2024-06-08 11:24:11 -04:00
#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