#include <stdarg.h>
#include <lib/string.h>
Include dependency graph for vsprintf.c:
Go to the source code of this file.
Defines | |
#define | do_div(n, base) |
#define | is_digit(c) ((c) >= '0' && (c) <= '9') |
#define | LEFT 16 |
#define | PLUS 4 |
#define | SIGN 2 |
#define | SMALL 64 |
#define | SPACE 8 |
#define | SPECIAL 32 |
#define | ZEROPAD 1 |
Functions | |
static char * | number (char *str, int num, int base, int size, int precision, int type) |
static int | skip_atoi (const char **s) |
int | vsprintf (char *buf, const char *fmt, vaList args) |
#define do_div | ( | n, | |||
base | ) |
Value:
({ \ int __res; \ __asm__("divl %4":"=a" (n),"=d" (__res):"0" (n),"1" (0),"r" (base)); \ __res; })
Definition at line 79 of file vsprintf.c.
Referenced by number().
#define is_digit | ( | c | ) | ((c) >= '0' && (c) <= '9') |
#define LEFT 16 |
#define PLUS 4 |
#define SIGN 2 |
#define SMALL 64 |
#define SPACE 8 |
#define SPECIAL 32 |
#define ZEROPAD 1 |
static char* number | ( | char * | str, | |
int | num, | |||
int | base, | |||
int | size, | |||
int | precision, | |||
int | type | |||
) | [static] |
static int skip_atoi | ( | const char ** | s | ) | [static] |
int vsprintf | ( | char * | buf, | |
const char * | fmt, | |||
vaList | args | |||
) |