Splitting by the string "malloc" isn't working and returns a different split

Advertisements char str[2500] ="int *x = malloc(sizeof(int));"; const char s[9] = "malloc"; char *token = strtok(str, s); while( token != NULL ) { printf("%s\n", token ); token = strtok(NULL, s); } Output: int *x = (size f(int)); I want it to return: int *x = (sizeof(int)); but oddly it refuses to do that and I… Read More Splitting by the string "malloc" isn't working and returns a different split