ELinks 0.18.0
|
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "elinks.h"
#include "util/snprintf.h"
Macros | |
#define | LDOUBLE double |
#define | LLONG long |
#define | DP_S_DEFAULT 0 |
#define | DP_S_FLAGS 1 |
#define | DP_S_MIN 2 |
#define | DP_S_DOT 3 |
#define | DP_S_MAX 4 |
#define | DP_S_MOD 5 |
#define | DP_S_CONV 6 |
#define | DP_S_DONE 7 |
#define | DP_F_MINUS (1 << 0) |
#define | DP_F_PLUS (1 << 1) |
#define | DP_F_SPACE (1 << 2) |
#define | DP_F_NUM (1 << 3) |
#define | DP_F_ZERO (1 << 4) |
#define | DP_F_UP (1 << 5) |
#define | DP_F_UNSIGNED (1 << 6) |
#define | DP_C_SHORT 1 |
#define | DP_C_LONG 2 |
#define | DP_C_LDOUBLE 3 |
#define | DP_C_LLONG 4 |
#define | char_to_int(p) ((p)- '0') |
Functions | |
static size_t | dopr (char *buffer, size_t maxlen, const char *format, va_list args_in) |
static void | fmtstr (char *buffer, size_t *currlen, size_t maxlen, char *value, int flags, int min, int max) |
static void | fmtint (char *buffer, size_t *currlen, size_t maxlen, long value, int base, int min, int max, int flags) |
static void | fmtfp (char *buffer, size_t *currlen, size_t maxlen, LDOUBLE fvalue, int min, int max, int flags) |
static void | dopr_outch (char *buffer, size_t *currlen, size_t maxlen, char c) |
static LDOUBLE | my_abs (LDOUBLE value) |
static LDOUBLE | my_pow10 (int exp) |
static LLONG | my_round (LDOUBLE value) |
static double | my_modf (double x0, double *iptr) |
int | elinks_vsnprintf (char *str, size_t count, const char *fmt, va_list args) |
int | elinks_snprintf (char *str, size_t count, const char *fmt,...) |
int | elinks_vasprintf (char **ptr, const char *format, va_list ap) |
int | elinks_asprintf (char **ptr, const char *format,...) |
char * | asprintfa (const char *fmt,...) |
Variables | |
static char | hexnumbers [] = "0123456789abcdef" |
static char | HEXnumbers [] = "0123456789ABCDEF" |
#define char_to_int | ( | p | ) | ((p)- '0') |
#define DP_C_LDOUBLE 3 |
#define DP_C_LLONG 4 |
#define DP_C_LONG 2 |
#define DP_C_SHORT 1 |
#define DP_F_MINUS (1 << 0) |
#define DP_F_NUM (1 << 3) |
#define DP_F_PLUS (1 << 1) |
#define DP_F_SPACE (1 << 2) |
#define DP_F_UNSIGNED (1 << 6) |
#define DP_F_UP (1 << 5) |
#define DP_F_ZERO (1 << 4) |
#define DP_S_CONV 6 |
#define DP_S_DEFAULT 0 |
#define DP_S_DONE 7 |
#define DP_S_DOT 3 |
#define DP_S_FLAGS 1 |
#define DP_S_MAX 4 |
#define DP_S_MIN 2 |
#define DP_S_MOD 5 |
#define LDOUBLE double |
#define LLONG long |
char * asprintfa | ( | const char * | fmt, |
... ) |
|
static |
|
inlinestatic |
int elinks_asprintf | ( | char ** | ptr, |
const char * | format, | ||
... ) |
int elinks_snprintf | ( | char * | str, |
size_t | count, | ||
const char * | fmt, | ||
... ) |
int elinks_vasprintf | ( | char ** | ptr, |
const char * | format, | ||
va_list | ap ) |
int elinks_vsnprintf | ( | char * | str, |
size_t | count, | ||
const char * | fmt, | ||
va_list | args ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |