man 了一下,但试了一下感觉和自己理解的不一样,请指点一二... int len1, len2; char buffer[] = "25,142,330,Smith,J,239-4123"; len1 = strspn( buffer, "0123456789"); len2 = strspn( buffer, ",0123456789"); len1和len2的值分别是2和11,这是我不懂的地方 |