sscanf ("123456 ", "%s", buf); printf("%sn", buf); 结果为:123456. 2. 取指定长度的字符串。如在下例中,取最大长度为4字节的字符串。
確定! 回上一頁