printf_core.c File Reference

Printing functions. More...

Include dependency graph for printf_core.c:

Go to the source code of this file.

Defines

#define __PRINTF_FLAG_PREFIX   0x00000001
#define __PRINTF_FLAG_SIGNED   0x00000002
#define __PRINTF_FLAG_ZEROPADDED   0x00000004
#define __PRINTF_FLAG_LEFTALIGNED   0x00000010
#define __PRINTF_FLAG_SHOWPLUS   0x00000020
#define __PRINTF_FLAG_SPACESIGN   0x00000040
#define __PRINTF_FLAG_BIGCHARS   0x00000080
#define __PRINTF_FLAG_NEGATIVE   0x00000100
#define PRINT_NUMBER_BUFFER_SIZE   (64+5)

Enumerations

enum  qualifier_t {
  PrintfQualifierByte = 0, PrintfQualifierShort, PrintfQualifierInt, PrintfQualifierLong,
  PrintfQualifierLongLong, PrintfQualifierNative, PrintfQualifierPointer
}

Functions

 SPINLOCK_INITIALIZE (printflock)
static int isdigit (int c)
size_t strlen (const char *str)
static int printf_putnchars (const char *buf, size_t count, struct printf_spec *ps)
static int printf_putstr (const char *str, struct printf_spec *ps)
static int printf_putchar (int c, struct printf_spec *ps)
static int print_char (char c, int width, __u64 flags, struct printf_spec *ps)
static int print_string (char *s, int width, int precision, __u64 flags, struct printf_spec *ps)
static int print_number (__u64 num, int width, int precision, int base, __u64 flags, struct printf_spec *ps)
int printf_core (const char *fmt, struct printf_spec *ps, va_list ap)

Variables

static char digits_small [] = "0123456789abcdef"
static char digits_big [] = "0123456789ABCDEF"


Detailed Description

Definition in file printf_core.c.


Generated on Sun Jun 18 17:30:12 2006 for HelenOS Kernel (ppc64) by  doxygen 1.4.6