uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xprintf.c File Reference
#include "stdio.h"
#include <stdarg.h>
#include "ctype.h"
#include <math.h>
#include "stdlib.h"
#include "string.h"

Go to the source code of this file.

Classes

struct  s_info
 
struct  s_strargument
 
struct  sgMprintf
 

Macros

#define MAXDIG   20
 
#define NINFO   (sizeof(fmtinfo)/sizeof(info)) /* Size of the fmtinfo table */
 
#define BUFSIZE   100 /* Size of the output buffer */
 
#define SPACESIZE   (sizeof(spaces)-1)
 

Typedefs

typedef struct s_info info
 

Enumerations

enum  e_type {
  RADIX, FLOAT, EXP, GENERIC,
  SIZE, STRING, PERCENT, CHAR,
  ERROR, CHARLIT, SEEIT, MEM_STRING,
  ORDINAL
}
 

Functions

int vxprintf (void *func, void *arg, const char *format, va_list ap)
 
int vsprintf (char *buf, const char *fmt, va_list ap)
 
int vsnprintf (char *buf, size_t n, const char *fmt, va_list ap)
 
int vasprintf (char **out, const char *zFormat, va_list ap)
 
int vdprintf (int fd, const char *zFormat, va_list ap)
 

Macro Definition Documentation

#define BUFSIZE   100 /* Size of the output buffer */

Definition at line 187 of file xprintf.c.

#define MAXDIG   20

Definition at line 83 of file xprintf.c.

#define NINFO   (sizeof(fmtinfo)/sizeof(info)) /* Size of the fmtinfo table */

Definition at line 147 of file xprintf.c.

#define SPACESIZE   (sizeof(spaces)-1)

Typedef Documentation

typedef struct s_info info

Enumeration Type Documentation

enum e_type
Enumerator
RADIX 
FLOAT 
EXP 
GENERIC 
SIZE 
STRING 
PERCENT 
CHAR 
ERROR 
CHARLIT 
SEEIT 
MEM_STRING 
ORDINAL 

Definition at line 89 of file xprintf.c.

Function Documentation

int vasprintf ( char **  out,
const char *  zFormat,
va_list  ap 
)

Definition at line 772 of file xprintf.c.

int vdprintf ( int  fd,
const char *  zFormat,
va_list  ap 
)

Definition at line 806 of file xprintf.c.

int vsnprintf ( char *  buf,
size_t  n,
const char *  fmt,
va_list  ap 
)

Definition at line 713 of file xprintf.c.

int vsprintf ( char *  buf,
const char *  fmt,
va_list  ap 
)

Definition at line 706 of file xprintf.c.

int vxprintf ( void *  func,
void *  arg,
const char *  format,
va_list  ap 
)

Definition at line 216 of file xprintf.c.