#include "stdinc.h"
#include "irc_string.h"
#include <stdarg.h>
Vai al codice sorgente di questo file.
Definizioni | |
#define | HAVE_STDARGS |
#define | VA_LOCAL_DECL va_list ap |
#define | VA_START(f) va_start(ap, f) |
#define | VA_SHIFT(v, t) ; |
#define | VA_END va_end(ap) |
#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 | char_to_int(p) (p - '0') |
#define | MAX(p, q) ((p >= q) ? p : q) |
Funzioni | |
static void | dopr (char *buffer, size_t maxlen, const char *format, va_list args) |
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, long double fvalue, int min, int max, int flags) |
static void | dopr_outch (char *buffer, size_t *currlen, size_t maxlen, char c) |
static long double | abs_val (long double value) |
static long double | pow10 (int exp) |
static long | round (long double value) |
int | vsnprintf (char *str, size_t count, const char *fmt, va_list args) |
int | snprintf (char *str, size_t count, const char *fmt,...) |
#define char_to_int | ( | p | ) | (p - '0') |
#define DP_C_LDOUBLE 3 |
#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 HAVE_STDARGS |
Definizione alla linea 76 del file snprintf.c.
#define MAX | ( | p, | |||
q | ) | ((p >= q) ? p : q) |
#define VA_END va_end(ap) |
#define VA_LOCAL_DECL va_list ap |
#define VA_SHIFT | ( | v, | |||
t | ) | ; |
#define VA_START | ( | f | ) | va_start(ap, f) |
static long double abs_val | ( | long double | value | ) | [static] |
static void dopr | ( | char * | buffer, | |
size_t | maxlen, | |||
const char * | format, | |||
va_list | args | |||
) | [static] |
Definizione alla linea 127 del file snprintf.c.
Riferimenti char_to_int, dopr_outch(), DP_C_LDOUBLE, DP_C_LONG, DP_C_SHORT, DP_F_MINUS, DP_F_NUM, DP_F_PLUS, DP_F_SPACE, DP_F_UNSIGNED, DP_F_UP, DP_F_ZERO, DP_S_CONV, DP_S_DEFAULT, DP_S_DONE, DP_S_DOT, DP_S_FLAGS, DP_S_MAX, DP_S_MIN, DP_S_MOD, flags, fmtfp(), fmtint(), e fmtstr().
Referenziato da vsnprintf().
static void dopr_outch | ( | char * | buffer, | |
size_t * | currlen, | |||
size_t | maxlen, | |||
char | c | |||
) | [static] |
static void fmtfp | ( | char * | buffer, | |
size_t * | currlen, | |||
size_t | maxlen, | |||
long double | fvalue, | |||
int | min, | |||
int | max, | |||
int | flags | |||
) | [static] |
Definizione alla linea 544 del file snprintf.c.
Riferimenti abs_val(), dopr_outch(), DP_F_MINUS, DP_F_PLUS, DP_F_SPACE, DP_F_ZERO, pow10(), e round().
Referenziato da dopr().
static void fmtint | ( | char * | buffer, | |
size_t * | currlen, | |||
size_t | maxlen, | |||
long | value, | |||
int | base, | |||
int | min, | |||
int | max, | |||
int | flags | |||
) | [static] |
Definizione alla linea 419 del file snprintf.c.
Riferimenti dopr_outch(), DP_F_MINUS, DP_F_PLUS, DP_F_SPACE, DP_F_UNSIGNED, DP_F_UP, DP_F_ZERO, e MAX.
Referenziato da dopr().
static void fmtstr | ( | char * | buffer, | |
size_t * | currlen, | |||
size_t | maxlen, | |||
char * | value, | |||
int | flags, | |||
int | min, | |||
int | max | |||
) | [static] |
Definizione alla linea 380 del file snprintf.c.
Riferimenti dopr_outch(), e DP_F_MINUS.
Referenziato da dopr().
static long double pow10 | ( | int | exp | ) | [static] |
static long round | ( | long double | value | ) | [static] |
int snprintf | ( | char * | str, | |
size_t | count, | |||
const char * | fmt, | |||
... | ||||
) |
Definizione alla linea 695 del file snprintf.c.
Riferimenti VA_END, VA_LOCAL_DECL, VA_SHIFT, VA_START, e vsnprintf().
Referenziato da add_listener(), comm_connect_tcp(), dohelp(), exit_client(), get_ircd_platform(), irc_getnameinfo(), load_all_modules(), load_core_modules(), load_one_module(), mo_testline(), send_caplist(), server_die(), set_locale(), stats_hooks(), who_global(), e write_log().
int vsnprintf | ( | char * | str, | |
size_t | count, | |||
const char * | fmt, | |||
va_list | args | |||
) |
Definizione alla linea 684 del file snprintf.c.
Riferimenti dopr().
Referenziato da cluster_a_line(), fd_note(), log_oper_action(), send_format(), sendto_match_servs(), sendto_realops_flags(), e snprintf().