Reading Ranges

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Reading Ranges.

ANSI 4.9.6.2** The interpretation of a dash (–) character that is neither the first nor the last character in the scanlist for % [ conversion in the fscanf function

The following line

fscanf( fileptr, "%[A-Z]", strptr);  

reads any number of characters in the range A–Z into the string to which strptr points.

Library Functions

Show: