RetroArch
Macros | Functions | Variables
kprintf.c File Reference
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for kprintf.c:

Macros

#define is_digit(c)   ((c) >= '0' && (c) <= '9')
 
#define ZEROPAD   1 /* pad with zero */
 
#define SIGN   2 /* unsigned/signed long */
 
#define PLUS   4 /* show plus */
 
#define SPACE   8 /* space if plus */
 
#define LEFT   16 /* left justified */
 
#define SPECIAL   32 /* 0x */
 
#define LARGE   64 /* use 'ABCDEF' instead of 'abcdef' */
 
#define do_div(n, base)
 
#define __DOUTBUFSIZE   256
 

Functions

static int skip_atoi (const char **s)
 
static char * number (char *str, long num, int base, int size, int precision, int type)
 
int kvsprintf (char *buf, const char *fmt, va_list args)
 
void kprintf (const char *str,...)
 

Variables

char __outstr [__DOUTBUFSIZE]
 

Macro Definition Documentation

◆ __DOUTBUFSIZE

#define __DOUTBUFSIZE   256

◆ do_div

#define do_div (   n,
  base 
)
Value:
({ \
int __res; \
__res = ((unsigned long) n) % (unsigned) base; \
n = ((unsigned long) n) / (unsigned) base; \
__res; })
GLdouble n
Definition: glext.h:8396

◆ is_digit

#define is_digit (   c)    ((c) >= '0' && (c) <= '9')

◆ LARGE

#define LARGE   64 /* use 'ABCDEF' instead of 'abcdef' */

◆ LEFT

#define LEFT   16 /* left justified */

◆ PLUS

#define PLUS   4 /* show plus */

◆ SIGN

#define SIGN   2 /* unsigned/signed long */

◆ SPACE

#define SPACE   8 /* space if plus */

◆ SPECIAL

#define SPECIAL   32 /* 0x */

◆ ZEROPAD

#define ZEROPAD   1 /* pad with zero */

Function Documentation

◆ kprintf()

void kprintf ( const char *  str,
  ... 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvsprintf()

int kvsprintf ( char *  buf,
const char *  fmt,
va_list  args 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ number()

static char* number ( char *  str,
long  num,
int  base,
int  size,
int  precision,
int  type 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ skip_atoi()

static int skip_atoi ( const char **  s)
static
Here is the caller graph for this function:

Variable Documentation

◆ __outstr

char __outstr[__DOUTBUFSIZE]