Functions
convert.h File Reference

Type conversion. More...

Functions

VTM_API char * vtm_conv_int64_str (int64_t num)
 
VTM_API char * vtm_conv_uint64_str (uint64_t num)
 
VTM_API char * vtm_conv_double_str (double r)
 
VTM_API int64_t vtm_conv_str_int64 (const char *in)
 
VTM_API uint64_t vtm_conv_str_uint64 (const char *in)
 
VTM_API double vtm_conv_str_double (const char *in)
 

Function Documentation

VTM_API char* vtm_conv_int64_str ( int64_t  num)

Returns the string representation of a signed 64 bit integer.

Parameters
numthe integer that should be represented as string
Returns
a string containing the number
NULL if memory allocation failed
VTM_API char* vtm_conv_uint64_str ( uint64_t  num)

Returns the string representation of an unsigned 64 bit integer.

Parameters
numthe integer that should be represented as string
Returns
a string containing the number
NULL if memory allocation failed
VTM_API char* vtm_conv_double_str ( double  r)

Returns the string representation of double value.

Parameters
rthe double that should be represented as string
Returns
a string containing the double in text form
NULL if memory allocation failed
VTM_API int64_t vtm_conv_str_int64 ( const char *  in)

Parses signed 64 bit integer value from string.

Parameters
inthe NUL-terminated input string
Returns
the converted number
VTM_API uint64_t vtm_conv_str_uint64 ( const char *  in)

Parses unsigned 64 bit integer value from string.

Parameters
inthe NUL-terminated input string
Returns
the converted number
VTM_API double vtm_conv_str_double ( const char *  in)

Parses a double value from string.

Parameters
inthe NUL-terminated input string
Returns
the converted double