The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Functions
snprintf.c File Reference
#include <freeradius-devel/util/snprintf.h>
+ Include dependency graph for snprintf.c:

Go to the source code of this file.

Macros

#define PRECISION   1.e-6
 

Functions

PRIVATE void conv_flag (char *s, struct DATA *p)
 
PRIVATE void exponent (struct DATA *p, double d)
 
PRIVATE void float64 (struct DATA *p, double d)
 
PRIVATE void floating (struct DATA *p, double d)
 
PRIVATE void hexa (struct DATA *p, double d)
 
PRIVATE double integral (double real, double *ip)
 
PRIVATE int log_10 (double r)
 
PRIVATE char * numtoa (double number, int base, int precision, char **fract)
 
PRIVATE void octal (struct DATA *p, double d)
 
PRIVATE double pow_10 (int n)
 
PUBLIC int snprintf (char *string, size_t length, char *format, va_alist)
 
PRIVATE void strings (struct DATA *p, char *tmp)
 
PUBLIC int vsnprintf (char *string, size_t length, char *format, va_list args)
 

Macro Definition Documentation

◆ PRECISION

#define PRECISION   1.e-6

Definition at line 159 of file snprintf.c.

Function Documentation

◆ conv_flag()

PRIVATE void conv_flag ( char *  s,
struct DATA p 
)

Definition at line 454 of file snprintf.c.

+ Here is the caller graph for this function:

◆ exponent()

PRIVATE void exponent ( struct DATA p,
double  d 
)

Definition at line 393 of file snprintf.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ float64()

PRIVATE void float64 ( struct DATA p,
double  d 
)

Definition at line 257 of file snprintf.c.

+ Here is the caller graph for this function:

◆ floating()

PRIVATE void floating ( struct DATA p,
double  d 
)

Definition at line 354 of file snprintf.c.

+ Here is the caller graph for this function:

◆ hexa()

PRIVATE void hexa ( struct DATA p,
double  d 
)

Definition at line 305 of file snprintf.c.

+ Here is the caller graph for this function:

◆ integral()

PRIVATE double integral ( double  real,
double *  ip 
)

Definition at line 122 of file snprintf.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ log_10()

PRIVATE int log_10 ( double  r)

Definition at line 94 of file snprintf.c.

+ Here is the caller graph for this function:

◆ numtoa()

PRIVATE char* numtoa ( double  number,
int  base,
int  precision,
char **  fract 
)

Definition at line 170 of file snprintf.c.

+ Here is the call graph for this function:

◆ octal()

PRIVATE void octal ( struct DATA p,
double  d 
)

Definition at line 281 of file snprintf.c.

+ Here is the caller graph for this function:

◆ pow_10()

PRIVATE double pow_10 ( int  n)

Definition at line 68 of file snprintf.c.

+ Here is the caller graph for this function:

◆ snprintf()

PUBLIC int snprintf ( char *  string,
size_t  length,
char *  format,
va_alist   
)

Definition at line 689 of file snprintf.c.

+ Here is the call graph for this function:

◆ strings()

PRIVATE void strings ( struct DATA p,
char *  tmp 
)

Definition at line 330 of file snprintf.c.

+ Here is the caller graph for this function:

◆ vsnprintf()

PUBLIC int vsnprintf ( char *  string,
size_t  length,
char *  format,
va_list  args 
)

Definition at line 506 of file snprintf.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: