you can toss the whole thing minus the main() routine into a .h file and plop a #pragma once on it.
it takes as input a monzo in the form of vector. the output is the RGB value as an array of 3 integers R G and B. it comes out as a typedef called "sRGBcolor" which has the three integers as .r, .g, and .b members.