C Tokenizer (and it returns empty too when fields are missing. yay!)

后端 未结 1 1836
生来不讨喜
生来不讨喜 2021-01-26 07:42

See also: Is this a good substr() for C?


strtok() and friends skip over empty fields, and I do not know how to tell it not to skip but rather return e

相关标签:
1条回答
  • 2021-01-26 08:39

    On some system, there is a function called strsep(). And you can find its source code by google. For example, http://www.google.com/codesearch/p?hl=zh-TW#XAzRy8oK4zA/libc/string/strsep.c&q=strsep

    0 讨论(0)
提交回复
热议问题