qc.hlp (Table of Contents; Topic list)
cscanf
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The cscanf function reads data directly from the console into the
     locations given by <argument>, using the getche function to read
     characters.
 
     Each optional <argument> must be a pointer to a variable with a
     type that corresponds to a type specifier in <format>. The
     <format> argument controls the interpretation of the input fields
     and has the same form and function as the <format> argument for
     the scanf function. (See scanf for a description of <format>.)
 
     Although cscanf normally echoes the input character, it cannot do
     so if the last call was to ungetch.
 
     Return Value
 
     The cscanf function returns the number of fields that were
     successfully converted and assigned. The return value does not
     include fields that were read but not assigned.
 
     The return value is EOF for an attempt to read at end-of-file.
     This may occur when keyboard input is redirected at the operating
     system command-line level. A return value of 0 means that no
     fields were assigned.
                                    -♦-