cvtFast.h
Fast numeric to string conversions.
Provides routines for converting various numeric types into an ascii string. They off a combination of speed and convenience not available with sprintf().
- Author
Bob Dalesio, Mark Anderson, Marty Kraimer
All functions return the number of characters in the output
Defines
-
cvtCharToString(val, str)
-
cvtUcharToString(val, str)
-
cvtShortToString(val, str)
-
cvtUshortToString(val, str)
-
cvtLongToString(val, str)
-
cvtUlongToString(val, str)
-
cvtLongToHexString(val, str)
-
cvtULongToHexString(val, str)
-
cvtLongToOctalString(val, str)
Functions
-
int cvtFloatToString(float val, char *pdest, epicsUInt16 prec)
-
int cvtDoubleToString(double val, char *pdest, epicsUInt16 prec)
-
int cvtFloatToExpString(float val, char *pdest, epicsUInt16 prec)
-
int cvtDoubleToExpString(double val, char *pdest, epicsUInt16 prec)
-
int cvtFloatToCompactString(float val, char *pdest, epicsUInt16 prec)
-
int cvtDoubleToCompactString(double val, char *pdest, epicsUInt16 prec)
-
size_t cvtInt32ToString(epicsInt32 val, char *pdest)
-
size_t cvtUInt32ToString(epicsUInt32 val, char *pdest)
-
size_t cvtInt64ToString(epicsInt64 val, char *pdest)
-
size_t cvtUInt64ToString(epicsUInt64 val, char *pdest)
-
size_t cvtInt32ToHexString(epicsInt32 val, char *pdest)
-
size_t cvtUInt32ToHexString(epicsUInt32 val, char *pdest)
-
size_t cvtInt32ToOctalString(epicsInt32 val, char *pdest)
-
size_t cvtInt64ToHexString(epicsInt64 val, char *pdest)
-
size_t cvtUInt64ToHexString(epicsUInt64 val, char *pdest)