I don't know the functions mentioned in the comments above but to do what you want in the way you are asking I would try this or something similar.
char *strings = "1,5,95,255";
char number;
int i = 0;
int value = 1;
printf ("value%d = ", value);
value++;
while (strings[i] != NULL) {
number = string[i];
i++;
if (number == ',')
printf("\nvalue%d = ",value++);
else
printf("%s",&number);
}