Libevhtp  1.2.13
numtoa.h
Go to the documentation of this file.
1 #ifndef __EVHTP_NUMTOA_H__
2 #define __EVHTP_NUMTOA_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "evhtp/config.h"
9 
19 EVHTP_EXPORT size_t evhtp_modp_sizetoa(size_t value, char * str);
20 
29 EVHTP_EXPORT size_t evhtp_modp_u32toa(uint32_t value, char * str);
30 
31 
40 EVHTP_EXPORT size_t evhtp_modp_u64toa(uint64_t value, char * str);
41 
42 #define evhtp_modp_uchartoa(_val) (unsigned char)('0' + _val)
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif
49 
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.
EVHTP_EXPORT size_t evhtp_modp_u32toa(uint32_t value, char *str)
converts uint32_t value to string
EVHTP_EXPORT size_t evhtp_modp_u64toa(uint64_t value, char *str)
convert uint64_t value to a string