Sun Studio 12: C User's Guide

(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:

The- character indicates an inclusive range; thus, [0-9] is equivalent to [0123456789].