Practice ยท 2 of 2
Parse RGB
Implement int parse_rgb(const char* text, int* r, int* g, int* b) parsing decimal colors like "12, 200, 3" (comma-separated, optional spaces). Return 1 only when all three parsed, else 0.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Parse the Line