Splitting a string using multiple delimiters in C
问题 I'm currently trying to split an array of chars that is assigned from reading in from a text file. right now I'm having troubles with delimiters and I don't know if I can have multiple. what I want to delimit is commas and spaces. Here is my code so far. #include <stdio.h> FILE * fPointer; fPointer = fopen("file name", "r"); char singleLine[1500]; char delimit[] = int i = 0; int j = 0; int k = 0; while(!feof(fPointer)){ //the i counter is for the first line in the text file which I want to