EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cvtFast.h File Reference

Fast numeric to string conversions. More...

#include <stddef.h>
#include "epicsTypes.h"
#include "libComAPI.h"
Include dependency graph for cvtFast.h:

Go to the source code of this file.

Macros

#define cvtCharToString(val, str)   cvtInt32ToString(val, str)
 
#define cvtUcharToString(val, str)   cvtUInt32ToString(val, str)
 
#define cvtShortToString(val, str)   cvtInt32ToString(val, str)
 
#define cvtUshortToString(val, str)   cvtUInt32ToString(val, str)
 
#define cvtLongToString(val, str)   cvtInt32ToString(val, str)
 
#define cvtUlongToString(val, str)   cvtUInt32ToString(val, str)
 
#define cvtLongToHexString(val, str)   cvtInt32ToHexString(val, str)
 
#define cvtULongToHexString(val, str)   cvtUInt32ToHexString(val, str)
 
#define cvtLongToOctalString(val, str)   cvtInt32ToOctalString(val, str)
 

Functions

LIBCOM_API int cvtFloatToString (float val, char *pdest, epicsUInt16 prec)
 
LIBCOM_API int cvtDoubleToString (double val, char *pdest, epicsUInt16 prec)
 
LIBCOM_API int cvtFloatToExpString (float val, char *pdest, epicsUInt16 prec)
 
LIBCOM_API int cvtDoubleToExpString (double val, char *pdest, epicsUInt16 prec)
 
LIBCOM_API int cvtFloatToCompactString (float val, char *pdest, epicsUInt16 prec)
 
LIBCOM_API int cvtDoubleToCompactString (double val, char *pdest, epicsUInt16 prec)
 
LIBCOM_API size_t cvtInt32ToString (epicsInt32 val, char *pdest)
 
LIBCOM_API size_t cvtUInt32ToString (epicsUInt32 val, char *pdest)
 
LIBCOM_API size_t cvtInt64ToString (epicsInt64 val, char *pdest)
 
LIBCOM_API size_t cvtUInt64ToString (epicsUInt64 val, char *pdest)
 
LIBCOM_API size_t cvtInt32ToHexString (epicsInt32 val, char *pdest)
 
LIBCOM_API size_t cvtUInt32ToHexString (epicsUInt32 val, char *pdest)
 
LIBCOM_API size_t cvtInt32ToOctalString (epicsInt32 val, char *pdest)
 
LIBCOM_API size_t cvtInt64ToHexString (epicsInt64 val, char *pdest)
 
LIBCOM_API size_t cvtUInt64ToHexString (epicsUInt64 val, char *pdest)
 

Detailed Description

Author
Bob Dalesio, Mark Anderson, Marty Kraimer

Provides routines for converting various numeric types into an ascii string. They off a combination of speed and convenience not available with sprintf().

All functions return the number of characters in the output

Definition in file cvtFast.h.