traversing C string: get the last word of a string

前端 未结 5 1115
终归单人心
终归单人心 2021-01-13 03:26

how would you get the last word of a string, starting from the \'\\0\' newline character to the rightmost space? For example, I could have something like this where str coul

5条回答
提交回复
热议问题