Libevhtp  1.2.13
numtoa.h File Reference
#include "evhtp/config.h"
Include dependency graph for numtoa.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define evhtp_modp_uchartoa(_val)   (unsigned char)('0' + _val)
 

Functions

EVHTP_EXPORT size_t evhtp_modp_sizetoa (size_t value, char *str)
 based on the system architecture, convert a size_t number to a string. More...
 
EVHTP_EXPORT size_t evhtp_modp_u32toa (uint32_t value, char *str)
 converts uint32_t value to string More...
 
EVHTP_EXPORT size_t evhtp_modp_u64toa (uint64_t value, char *str)
 convert uint64_t value to a string More...
 

Macro Definition Documentation

◆ evhtp_modp_uchartoa

#define evhtp_modp_uchartoa (   _val)    (unsigned char)('0' + _val)

Definition at line 42 of file numtoa.h.

Function Documentation

◆ evhtp_modp_sizetoa()

EVHTP_EXPORT size_t evhtp_modp_sizetoa ( size_t  value,
char *  str 
)

based on the system architecture, convert a size_t number to a string.

Parameters
valuethe input value
strThe output buffer, should be 24 chars or more.
Returns
Here is the caller graph for this function:

◆ evhtp_modp_u32toa()

EVHTP_EXPORT size_t evhtp_modp_u32toa ( uint32_t  value,
char *  str 
)

converts uint32_t value to string

Parameters
valueinput value
stroutput buffer, should be 16 chars or more
Returns
Here is the caller graph for this function:

◆ evhtp_modp_u64toa()

EVHTP_EXPORT size_t evhtp_modp_u64toa ( uint64_t  value,
char *  str 
)

convert uint64_t value to a string

Parameters
valueinput value
stroutput buffer, should be 24 chars or more
Returns