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 <stdint.h>
9 #include "evhtp/config.h"
10 
20 EVHTP_EXPORT size_t evhtp_modp_sizetoa(size_t value, char * str);
21 
30 EVHTP_EXPORT size_t evhtp_modp_u32toa(uint32_t value, char * str);
31 
32 
41 EVHTP_EXPORT size_t evhtp_modp_u64toa(uint64_t value, char * str);
42 
43 #define evhtp_modp_uchartoa(_val) (unsigned char)('0' + _val)
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
50 
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.
evhtp_modp_u32toa
EVHTP_EXPORT size_t evhtp_modp_u32toa(uint32_t value, char *str)
converts uint32_t value to string
evhtp_modp_u64toa
EVHTP_EXPORT size_t evhtp_modp_u64toa(uint64_t value, char *str)
convert uint64_t value to a string