I have a string ‘Merry Christmas’. I want to separate this one as ‘Merry’ and ‘Christmas’. In Objective c, I could do it easily by componentsSeparatedByString: . How to do this in C ?
I have a string ‘Merry Christmas’. I want to separate this one as ‘Merry’
Share
You can use strtok to split the string in C.