【C】字符串切割函數

strtok的典型用法是:spa 1code 2ci 3字符串 4it 5table p = strtok(s4, split);tab    while(p != NULL){di        printf("%s\n", p);while        p = strtok(NULL, split);co    }  須要注意的是:若是s4是字符串常量,運行這一段代碼會報出段錯誤。由於str
相關文章
相關標籤/搜索