How to cut part of a string in c?

后端 未结 6 1827
面向向阳花
面向向阳花 2021-02-14 19:22

I\'m trying to figure out how to cut part of a string in C. For example you have this character string \"The dog died because a car hit him while it was crossing the road\" how

6条回答
  •  渐次进展
    2021-02-14 20:04

    http://www.cplusplus.com/reference/cstring/

    You can use functions like strstr (to get substring), strtok (split using some token),

提交回复
热议问题