thankyou, i have another question.
howto check a value is not null after using strtok?
cmd = strtok(Text, idx);
if (strcmp(cmd, " ", true) == 0) { printf("cmd is empty"); } // it always prints "cmd is empty" even if its not
also, am i able to add the strtok function to a .inc file and globally use it. if so, how.
thankyou very much