•  Back 
  •  C Language 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : C-Language Documentation
Author      : John Kormylo
Version     : C.HYP 1.0
Subject     : Documentation/C-Language
Nodes       : 233
Index Size  : 6362
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ printf/scanf Formats ]

printf Syntax:  %[<flags>][<width>][.<precision>][l]<type>

The number of characters outputted varies, unless fixed by the
"width.precision" modifiers.

Characters between % specifications will be outputted directly (except
that one must use "%%" to output a percent symbol).
Newlines must be explicitly entered.

scanf Syntax:   %[*][[<cset>]][<width>][l]<type>

An input field is terminated by the first illegal character or
by the "width" modifier (whichever comes first).

Consecutive fields are generally separated by blanks, however one can
use other character(s) by including them between the % specifications.
For example, the two fields for "%g,%g" MUST be separated by a comma.

Most fields ignore leading blanks, tabs and newlines, and therefore
cannot be terminated until at least one legal character is entered
(no blank default).

A "%s" field is terminated by a newline, unless the legal character
set is modified using the "[cset]" modifier.