Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

snprintf.c File Reference

#include "snprintf.h"

Go to the source code of this file.

Functions

void sm_dopr ()
int snprintf (char *str, size_t count, const char *fmt, va_alist)
int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
void fmtstr __P ((char *value, int ljust, int len, int zpad, int maxwidth))
void fmtnum __P ((long value, int base, int dosign, int ljust, int len, int zpad))
void dostr __P ((char *, int))
void dopr_outch __P ((int c))
void sm_dopr (char *buffer, const char *format, va_list args)
void fmtstr (char *value, int ljust, int len, int zpad, int maxwidth)
void fmtnum (long value, int base, int dosign, int ljust, int len, int zpad)
void dostr (char *str, int cut)
void dopr_outch (int c)
char * quad_to_string (QUAD_T value)
char * shortenstring (const char *s, int m)

Variables

char * DoprEnd
int SnprfOverflow
char * output
int SyslogErrno


Function Documentation

void dopr_outch __P (int c)   ) 
 

void dostr __P (char *, int)   ) 
 

void fmtnum __P (long value, int base, int dosign, int ljust, int len, int zpad)   ) 
 

void fmtstr __P (char *value, int ljust, int len, int zpad, int maxwidth)   ) 
 

void dopr_outch int  c  ) 
 

Definition at line 407 of file snprintf.c.

References DoprEnd, and SnprfOverflow.

Referenced by dostr(), fmtnum(), fmtstr(), and sm_dopr().

void dostr char *  str,
int  cut
 

Definition at line 392 of file snprintf.c.

References dopr_outch().

Referenced by fmtstr(), and sm_dopr().

void fmtnum long  value,
int  base,
int  dosign,
int  ljust,
int  len,
int  zpad
 

Definition at line 323 of file snprintf.c.

References dopr_outch().

Referenced by sm_dopr().

void fmtstr char *  value,
int  ljust,
int  len,
int  zpad,
int  maxwidth
 

Definition at line 293 of file snprintf.c.

References dopr_outch(), and dostr().

Referenced by quad_to_string(), and sm_dopr().

char* quad_to_string QUAD_T  value  ) 
 

Definition at line 440 of file snprintf.c.

References fmtstr().

char* shortenstring const char *  s,
int  m
 

Definition at line 476 of file snprintf.c.

References MAXSHORTSTR.

Referenced by vsnprintf().

void sm_dopr char *  buffer,
const char *  format,
va_list  args
 

Definition at line 138 of file snprintf.c.

References dopr_outch(), dostr(), fmtnum(), and fmtstr().

void sm_dopr  ) 
 

Referenced by vsnprintf().

int snprintf char *  str,
size_t  count,
const char *  fmt,
va_alist 
 

Definition at line 82 of file snprintf.c.

References VA_END, VA_LOCAL_DECL, VA_START, and vsnprintf.

int vsnprintf char *  str,
size_t  count,
const char *  fmt,
va_list  args
 

Definition at line 103 of file snprintf.c.

References DoprEnd, MAXSHORTSTR, shortenstring(), sm_dopr(), SnprfOverflow, and tTd.


Variable Documentation

char* DoprEnd
 

Definition at line 72 of file snprintf.c.

Referenced by dopr_outch(), and vsnprintf().

char* output
 

Definition at line 133 of file snprintf.c.

Referenced by base64().

int SnprfOverflow
 

Definition at line 73 of file snprintf.c.

Referenced by dopr_outch(), and vsnprintf().

int SyslogErrno
 

Definition at line 135 of file snprintf.c.


Generated on Sun May 14 14:51:27 2006 by  doxygen 1.4.2