c語言字符串分離函數 - strtok

這裏我以「Knowing that there are tigers in the mountains, they prefer to travel in the mountains.」爲例 以空格隔開分離: while ((retptr=strtok(ptr, " ")) != NULL) { printf("substr[%d]:%s\n", i++, retptr);
相關文章
相關標籤/搜索