Back to index

glibc  2.9
Classes | Defines | Typedefs | Enumerations | Functions
printf.h File Reference
#include <features.h>
#include <stdio.h>
#include <stddef.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  printf_info

Defines

#define __need_FILE
#define __need_size_t
#define __need_wchar_t
#define PA_FLAG_MASK   0xff00
#define PA_FLAG_LONG_LONG   (1 << 8)
#define PA_FLAG_LONG_DOUBLE   PA_FLAG_LONG_LONG
#define PA_FLAG_LONG   (1 << 9)
#define PA_FLAG_SHORT   (1 << 10)
#define PA_FLAG_PTR   (1 << 11)

Typedefs

typedef int printf_function (FILE *__stream, __const struct printf_info *__info, __const void *__const *__args)
typedef int printf_arginfo_function (__const struct printf_info *__info, size_t __n, int *__argtypes)

Enumerations

enum  {
  PA_INT, PA_CHAR, PA_WCHAR, PA_STRING,
  PA_WSTRING, PA_POINTER, PA_FLOAT, PA_DOUBLE,
  PA_LAST
}

Functions

int register_printf_function (int __spec, printf_function __func, printf_arginfo_function __arginfo)
size_t parse_printf_format (__const char *__restrict __fmt, size_t __n, int *__restrict __argtypes) __THROW
int printf_size (FILE *__restrict __fp, __const struct printf_info *__info, __const void *__const *__restrict __args) __THROW
int printf_size_info (__const struct printf_info *__restrict __info, size_t __n, int *__restrict __argtypes) __THROW

Class Documentation

struct printf_info

Definition at line 34 of file printf.h.

Class Members
unsigned int alt:1
unsigned int extra:1
unsigned int group:1
unsigned int i18n:1
unsigned int is_char:1
unsigned int is_long:1
unsigned int is_long_double:1
unsigned int is_short:1
unsigned int left:1
wchar_t pad
int prec
unsigned int showsign:1
unsigned int space:1
wchar_t spec
unsigned int wide:1
int width

Define Documentation

#define __need_FILE

Definition at line 27 of file printf.h.

#define __need_size_t

Definition at line 29 of file printf.h.

#define __need_wchar_t

Definition at line 30 of file printf.h.

#define PA_FLAG_LONG   (1 << 9)

Definition at line 122 of file printf.h.

Definition at line 121 of file printf.h.

#define PA_FLAG_LONG_LONG   (1 << 8)

Definition at line 120 of file printf.h.

#define PA_FLAG_MASK   0xff00

Definition at line 119 of file printf.h.

#define PA_FLAG_PTR   (1 << 11)

Definition at line 124 of file printf.h.

#define PA_FLAG_SHORT   (1 << 10)

Definition at line 123 of file printf.h.


Typedef Documentation

Definition at line 73 of file printf.h.

typedef int printf_function(FILE *__stream, __const struct printf_info *__info, __const void *__const *__args)

Definition at line 65 of file printf.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
PA_INT 
PA_CHAR 
PA_WCHAR 
PA_STRING 
PA_WSTRING 
PA_POINTER 
PA_FLOAT 
PA_DOUBLE 
PA_LAST 

Definition at line 105 of file printf.h.

{                           /* C type: */
  PA_INT,                   /* int */
  PA_CHAR,                  /* int, cast to char */
  PA_WCHAR,                 /* wide char */
  PA_STRING,                /* const char *, a '\0'-terminated string */
  PA_WSTRING,               /* const wchar_t *, wide character string */
  PA_POINTER,               /* void * */
  PA_FLOAT,                 /* float */
  PA_DOUBLE,                /* double */
  PA_LAST
};

Function Documentation

size_t parse_printf_format ( __const char *__restrict  __fmt,
size_t  __n,
int *__restrict  __argtypes 
)
int printf_size ( FILE *__restrict  __fp,
__const struct printf_info __info,
__const void *__const *__restrict  __args 
)

Here is the caller graph for this function:

int printf_size_info ( __const struct printf_info *__restrict  __info,
size_t  __n,
int *__restrict  __argtypes 
)

Here is the caller graph for this function:

Here is the caller graph for this function: