mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-09-19 09:58:06 -04:00
23 lines
261 B
C
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
|