bool is_legal_size_spec(char *timeSpec){
char timeSpecArray[100];
strcpy(timeSpecArray, timeSpec);
char restrictions[] = {100,12,31,24,60,60};
char delimiter[] = " yndhms";
char *token = strtok(timeSpecArray, delimiter);
printf("%s", token);
if((int)token > restrictions[0]){
printf("%s", "No");
return 0;
}
I have to compare token to the first element in restrictions, but I am getting an error message that says cast from pointer to integer of different size, does anyone have any suggestions? I have looked around and couldn't find anything. Anything is appreciated, thanks.