strtok behavior

前端 未结 2 600
清酒与你
清酒与你 2021-01-21 15:44
 int main ()
 {

    char str[] =\"kk,12,,23,4,,,3434,3,33,,,\";
    char * valarr;
    int count=0;
    valarr = strtok(str,\",\"); 
    while(valarr != \'\\0\')
    {
         


        
2条回答
  •  离开以前
    2021-01-21 16:17

    Short answer: NO At least using strtok, check this to learn what's better for your application.

提交回复
热议问题