Question here concerning below. I use fgets to read in an entire line from a file in the format: " text 5 1 2 33 34 52" with the first number telling how many number follows it. However how do i go about working with the a number greater than 10.

for(x=0; x<num_events; x++)
{
fgets(action,1024,open);


sscanf(action,"%s ", action1);

originallinesize=strlen(action);
wordsize=strlen(action1);

for(i=wordsize+1;i<originallinesize;i++)
{
if( isdigit(action[i])>1)
{
printf("%c\n", action[i]);
}

else
{
// when it finds the space seperating the numbers it prints below.
printf("no sir\n");
}