Atmel Software Framework

avr32/applications/evk1100-control-panel/utils/printf-stdarg.c File Reference
#include <sys/reent.h>
#include <stdarg.h>
#include <string.h>
#include "compiler.h"

Macros

#define PAD_RIGHT   1
 
#define PAD_ZERO   2
 
#define PRINT_BUF_LEN   12
 
#define putchar(c)   vtracedump_Putchar_Block(c)
 

Functions

int fprintf (__FILE *stream, const char *format,...)
 
static int print (char **out, const char *format, va_list args)
 
static void printchar (char **str, int c)
 
static int printi (char **out, int i, int b, int sg, int width, int pad, int letbase, int printlimit)
 
int printk (const char *format,...)
 
static int prints (char **out, const char *string, int width, int pad, int printlimit, bool IsNumber)
 
int sprintf (char *out, const char *format,...)
 

#define PAD_RIGHT   1

Referenced by print(), and prints().

#define PAD_ZERO   2

Referenced by print(), printi(), and prints().

#define PRINT_BUF_LEN   12

Referenced by printi().

int fprintf ( __FILE *  stream,
const char *  format,
  ... 
)
static int print ( char **  out,
const char *  format,
va_list  args 
)
static
static void printchar ( char **  str,
int  c 
)
static

References c, and putchar.

Referenced by print(), printi(), and prints().

static int printi ( char **  out,
int  i,
int  b,
int  sg,
int  width,
int  pad,
int  letbase,
int  printlimit 
)
static

References b, i, PAD_ZERO, PRINT_BUF_LEN, printchar(), prints(), s, and width.

Referenced by print().

int printk ( const char *  format,
  ... 
)

References printk_va().

static int prints ( char **  out,
const char *  string,
int  width,
int  pad,
int  printlimit,
bool  IsNumber 
)
static

References i, PAD_RIGHT, PAD_ZERO, printchar(), and width.

Referenced by print(), and printi().

int sprintf ( char *  out,
const char *  format,
  ... 
)

References printk_va().