Or use strcspn. No such pain in the ass either: you just have to point at the string you want to tokenize. strcspn will return the number of characters between tokens. You can copy data over to a new line** or print the token, whatever.
Printable View
Or use strcspn. No such pain in the ass either: you just have to point at the string you want to tokenize. strcspn will return the number of characters between tokens. You can copy data over to a new line** or print the token, whatever.