And here's how you use strtok (you know... for future references).
#include <stdio.h>
#include <string.h>
int main(void){
char line[20] = "Process0 12 1"; // suppose this is the first line read by fgets
char* delim=" ";
char* result = NULL;
result=strtok(line,delim);
if(result != NULL)
printf("process:%s\n",result);//store process in an array
result=strtok(NULL,delim);//first argument NULL except first call to strtok
printf("quanta:%s\n",result);//store quanta in another array,you can use atoi to change
//quanta to integer type
result=strtok(NULL,delim);//first argument NULL except first call to strtok
printf("priority:%s\n",result);//store priority in another array
return 0;
}