C语言sscanf函数的总结 char *string;int digit;sscanf(string, "%5s", buf1);sscanf(string, "%[^/]", buf1);sscanf(string, "%*[^<]<%[^>]", buf1); galoisgodel 2011-12-18 17:39:20
Shell脚本调用C语言之字符串切分函数——strtok char * p = NULL;char buf2[100][9];memset(buf,0x00,sizeof(buf));data[len]= atoi(buf2[len]);len++;p= strtok(NULL, ","); jeffery00 2017-06-18 10:12:13