Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-63
fscanf
•
Conversion Specifiers
The format of a conversion specifier is:
% [*] [width] [modifier] conv_code
The percent sign indicates the start of a conversion specifier. Here are the 
components that follow it:
•
Conversion Modifiers
Here are the possible values of modifier in a conversion specifier:
*
Is the suppression flag; it specifies that the converted value should 
be discarded and not stored in the next variable referenced by 
*obj_ptr....
width
Is an optional decimal number that specifies the maximum field 
width.
modifier
Is an optional modifier that indicates the size of the next variable in 
*obj_ptr....
conv_code
Is a conversion code that determines how fscanf scans the input 
data and what type of value it converts that data to.
h
indicates that the next pointer in obj_ptr... points to a short variable. For 
conversion codes d, i, n, o, and x, the pointer is a pointer to short int. For 
conversion code u, the pointer is a pointer to unsigned short int.
l
indicates that the next pointer in obj_ptr... points to a variable of type long. 
For conversion codes d, i, n, o, and x, the pointer is a pointer to long int. For 
conversion code u, the pointer is a pointer to unsigned long int. For conversion 
codes e, f, and g, the pointer is a pointer to double (instead of float).
L
indicates that the next pointer in obj_ptr... points to a variable of type long 
double or long long. For conversion codes e, f, and g, the pointer is a pointer 
to long double. For conversion codes d, i, n, o, and x, the pointer is a pointer 
to long long.










