So the issue is the user can either give input that is one int, or the user can give an input with three int. And it all depends on the first input. Little confusing so here is an example:
printf("Please enter input in this format: (-blackwhite | -color) colorvalue");
user inputs "-blackwhite 40" so I want to
scanf("%s %u", charArray, &int);
but user can also input "-color 254 254 254" then I would want to
scanf("%s %u %u %u", charArray, &int1, &int2, &int3);
How do I go about doing this? Basically verifying the data before I scan it into variables.