摘要:
1 #include <stdio.h> 2 #include <string.h> 3 4 char *my_strtok(char *buf, char *delims) 5 { 6 static int first = 1; 7 if(first){ // 8 first = 0; // 互斥操作,确保后面代码仅在本次调用执行 9 return strtok(buf, delims);10 } else {11 return strtok(NULL, delims);12 }13 }14 15 int m... 阅读全文