Skip to content

Latest commit

 

History

History
45 lines (41 loc) · 958 Bytes

File metadata and controls

45 lines (41 loc) · 958 Bytes
title Reading Ranges | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-language
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
ms.assetid 99de29ce-ab14-46f4-97e1-2081fd996b53
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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.

See Also

Library Functions