调用 sscanf() 即可。读法:跳过第一个引号以前的字符,读下面字符,直到下一个引号前为止。include <stdio.h> int main(){ char s[100]="abdc12\"3456 xyz-%%\"%ABe";char s2[100];int i;sscanf(s,"%*[^\"]\"%[^\"]",s2); // 关键的语句和格式在此行 printf("%s\n",s2...
include <stdio.h>#include <stdlib.h>#include <string.h>//返回从filename中读取第m到n行字符保存到mystring, //如果打不开文件,失败返回NULL //如果不足m行,返回NULL,且mystring为空串//如果不足n行,返回NULL,mystring为m行之后的所有内容 //如果完成成功,返回mystring,且mystring保存...