
B–61863E–1/06
3. CREATING A C PROGRAM
APPLICATION
PROGRAMMING GUIDE
403
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
∆ ∆ f f
∆: Floating–point no supported
<Integer input>
(1) (2) (3)
% [*] [numeric string] [l]d
[l]o
[l]x
[l]u
c
(1) When a “*” is specified, input data specified in this function is
skipped.
Assignment is not performed.
(2) Specifies the maximum number of digits to input of a character string.
(3) When “l” is specified, the variable is a long–type.
If not specified, the variable is a short–type.
“d” : Input as a signed decimal.
“o” : Input as an unsigned octal.
“x” : Input as an unsigned hexadecimal.
“c” : Input a single character and assign to a char–type variable.
“s” : Input a character string.
<Floating–point input> (16i/18i only)
(1) (2) (3)
% [*] [numeric string] [l]f
[l]e
[l]g
(1) When a “*” is specified, input data specified in this function is
skipped.
Assignment is not performed.
(2) Specifies the maximum number of digits to input of a character string.
(3) When “l” is specified, the variable is a double float–type.
If not specified, the variable is a float–type.
“f”, “e”, “g”: Input as a floating–point number which is composed of
one or more sequential decimal number with a sign
(+,–) and decimal point (optional), exponent(“e”) and
signed integer (optional).
3.2.4
Format Specifications
for Scanf Functions
(sscanf)