Pointer-size and Argument-type Modifiers

From RAD Studio
Jump to: navigation, search

Go Up to scanf, wscanf

These modifiers affect how ...scanf functions interpret the corresponding address argument arg[f].

Pointer-size modifiers

Pointer-size modifiers override the default or declared size of arg.

Modifier arg Interpreted As...

F

Far pointer

N

Near pointer (Cannot be used with any conversion in huge model)

Argument-type modifiers

Argument-type modifiers indicate which type of the following input data is to be used (h = short, l = long, L = long double).

The input data is converted to the specified version, and the arg for that input data should point to an object of corresponding size.

Modifier   For This Type   Convert Input to...  

h

(short)

d i o u x

D I O U X

e f c s n p

short int; store in short object

(No effect)

(No effect)

l

(long)

d i o u x

e f g

D I O U X

c s n p

long int; store in long object

double; store in double object

(No effect)

(No effect)

L

(long double)

e f g

(all others)

long double; store in long double object

(No effect)

See Also