How do you convert from color HEX code to RGB in pure C using C library only (without C++ or templates)? The RGB struct may be like this:
typedef struct RGB { double r; double g; double b; } RGB1;
The function I'm looking for should return RGB1.