Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我读取了一个 xml 文件并获取行以将其与另一个值进行比较:
xmlLine = fgets(fid);
这使 :
xmlLine = <a="true" value="toto">
我需要,当让 xmlLine 删除空格时(这里开始前有 6 个空格)
任何的想法?
strtrim会成功的:
strtrim
strtrim(' <a="true" value="toto">')
该函数从字符串的开头和结尾删除多余的空格。