PKUOS - Pintos
Pintos source browser for PKU Operating System course
Public Types | Data Fields
printf_conversion Struct Reference

printf() formatting internals. More...

Public Types

enum  {
  MINUS = 1 << 0 , PLUS = 1 << 1 , SPACE = 1 << 2 , POUND = 1 << 3 ,
  ZERO = 1 << 4 , GROUP = 1 << 5
}
 
enum  {
  CHAR = 1 , SHORT = 2 , INT = 3 , INTMAX = 4 ,
  LONG = 5 , LONGLONG = 6 , PTRDIFFT = 7 , SIZET = 8
}
 

Data Fields

enum printf_conversion:: { ... }  flags
 
int width
 
int precision
 
enum printf_conversion:: { ... }  type
 

Detailed Description

printf() formatting internals.

A printf() conversion.

Definition at line 94 of file stdio.c.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MINUS 

'-'

PLUS 

'+'

SPACE 

' '

POUND 

'#'

ZERO 

'0'

GROUP 

'\''

Definition at line 97 of file stdio.c.

◆ anonymous enum

anonymous enum
Enumerator
CHAR 

hh

SHORT 

h

INT 

(none)

INTMAX 

j

LONG 

l

LONGLONG 

ll

PTRDIFFT 

t

SIZET 

z

Definition at line 116 of file stdio.c.

Field Documentation

◆ 

enum { ... } printf_conversion::flags

◆ precision

int printf_conversion::precision

Definition at line 113 of file stdio.c.

Referenced by __vprintf(), format_integer(), and parse_conversion().

◆ 

enum { ... } printf_conversion::type

Referenced by __vprintf(), and parse_conversion().

◆ width

int printf_conversion::width

Definition at line 109 of file stdio.c.

Referenced by format_integer(), format_string(), and parse_conversion().


The documentation for this struct was generated from the following file: