14.04.2019, 10:44
If you want to extract the color from the string you can use sscanf (using the x specifier for hexadecimal). You can also change your extract line to use hex instead of string (not sure if "hex" is the actual name since I mostly use the sscanf function).