#include <string.h>
#include <stdio.h>
int main () {
char str[80] = "A - B - C";
char str2[80] = "D - E - F";
const char s[2] = "-";
char *token;
char *token2;
/* 获取第一个子字符串 */
/* 继续获取其他的子字符串 */
while( token != NULL ) {
}
return(0);
}
I2luY2x1ZGUgPHN0cmluZy5oPgojaW5jbHVkZSA8c3RkaW8uaD4KIAppbnQgbWFpbiAoKSB7CiAgIGNoYXIgc3RyWzgwXSA9ICJBIC0gQiAtIEMiOwogICBjaGFyIHN0cjJbODBdID0gIkQgLSBFIC0gRiI7CiAgIGNvbnN0IGNoYXIgc1syXSA9ICItIjsKICAgY2hhciAqdG9rZW47CiAgIGNoYXIgKnRva2VuMjsKICAgCiAgIC8qIOiOt+WPluesrOS4gOS4quWtkOWtl+espuS4siAqLwogICB0b2tlbiA9IHN0cnRvayhzdHIsIHMpOwogICB0b2tlbjIgPSBzdHJ0b2soc3RyMiwgcyk7CiAgIAogICAvKiDnu6fnu63ojrflj5blhbbku5bnmoTlrZDlrZfnrKbkuLIgKi8KICAgd2hpbGUoIHRva2VuICE9IE5VTEwgKSB7CiAgICAgIHByaW50ZiggIiVzXG4iLCB0b2tlbiApOwogICAgICBwcmludGYoICIlc1xuIiwgdG9rZW4yICk7CiAgICAKICAgICAgdG9rZW4gPSBzdHJ0b2soTlVMTCwgcyk7CiAgICAgIHRva2VuMiA9IHN0cnRvayhOVUxMLCBzKTsKICAgfQogICAKICAgcmV0dXJuKDApOwp9