Sun Studio 12:C 用户指南

(7.9.6.2) The interpretation of a- character that is neither the first nor the last character in the scan list for %[ conversion in the fscanf function(对既不是 fscanf 函数中 %[ 转换的扫描列表中的第一个字符也不是最后一个字符的 - 字符的解释):

- 字符表示包括边界的范围,因此 [0-9][0123456789] 等效。