If you want you can copy blank into text string so that original string is modified. I saw this in a “list of interview questions”. Use the trim function to remove whitespace created from normal spaces. Thus, the two examples,
C programming code using pointers
The output is a list of words separated by single spaces. A bit late to the game, but i’ll throw my routines into the fray. Is a gnu extension.