int main() {
char* instruction = "x10, 14(x2)";
char* rd = strsep(&instruction, ",");
printf("%c", *rd);
return(0);
}
I was trying to run this few lines, and i was expecting it to print "x", but it gives segmentation fault. What did i do wrong?