mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-09-19 09:58:06 -04:00
8 lines
262 B
C
8 lines
262 B
C
#include "resistor_color.h"
|
|
|
|
static const resistor_band_t bandColors[] = {
|
|
BLACK, BROWN, RED, ORANGE, YELLOW, GREEN, BLUE, VIOLET, GREY, WHITE};
|
|
|
|
int color_code(resistor_band_t color) { return color; }
|
|
|
|
const resistor_band_t *colors() { return bandColors; }
|