c program strtok use
#include <stdio.h>
#include <string.h>
int main() {
char str[] = "Hello,World,This,is,a,C,Program";
char *token;
// Get the first token
token = strtok(str, ",");
// Walk through other tokens
while (token != NULL) {
printf("%s\n", token);
token = strtok(NULL, ",");
}
return 0;
}