13 #ifndef INC_epicsStdlib_H
14 #define INC_epicsStdlib_H
33 #include "libComAPI.h"
34 #include "osdStrtod.h"
43 #define S_stdlib_noConversion (M_stdlib | 1)
45 #define S_stdlib_extraneous (M_stdlib | 2)
47 #define S_stdlib_underflow (M_stdlib | 3)
49 #define S_stdlib_overflow (M_stdlib | 4)
51 #define S_stdlib_badBase (M_stdlib | 5)
70 epicsParseULong(
const char *str,
unsigned long *to,
int base,
char **units);
77 epicsParseLLong(
const char *str,
long long *to,
int base,
char **units);
84 epicsParseULLong(
const char *str,
unsigned long long *to,
int base,
char **units);
109 epicsParseInt8(
const char *str, epicsInt8 *to,
int base,
char **units);
116 epicsParseUInt8(
const char *str, epicsUInt8 *to,
int base,
char **units);
123 epicsParseInt16(
const char *str, epicsInt16 *to,
int base,
char **units);
137 epicsParseInt32(
const char *str, epicsInt32 *to,
int base,
char **units);
151 epicsParseInt64(
const char *str, epicsInt64 *to,
int base,
char **units);
161 #define epicsParseFloat32(str, to, units) epicsParseFloat(str, to, units)
163 #define epicsParseFloat64(str, to, units) epicsParseDouble(str, to, units)
173 #define epicsScanLong(str, to, base) (!epicsParseLong(str, to, base, NULL))
179 #define epicsScanULong(str, to, base) (!epicsParseULong(str, to, base, NULL))
185 #define epicsScanLLong(str, to, base) (!epicsParseLLong(str, to, base, NULL))
191 #define epicsScanULLong(str, to, base) (!epicsParseULLong(str, to, base, NULL))
197 #define epicsScanFloat(str, to) (!epicsParseFloat(str, to, NULL))
203 #define epicsScanDouble(str, to) (!epicsParseDouble(str, to, NULL))
LIBCOM_API int epicsParseInt32(const char *str, epicsInt32 *to, int base, char **units)
Convert a string to an epicsInt32 type.
The core data types used by epics.
LIBCOM_API int epicsParseLLong(const char *str, long long *to, int base, char **units)
Convert a string to a long long type.
LIBCOM_API int epicsParseULLong(const char *str, unsigned long long *to, int base, char **units)
Convert a string to a unsigned long long type.
LIBCOM_API int epicsParseUInt8(const char *str, epicsUInt8 *to, int base, char **units)
Convert a string to an epicsUInt8 type.
LIBCOM_API int epicsParseInt64(const char *str, epicsInt64 *to, int base, char **units)
Convert a string to an epicsInt64 type.
LIBCOM_API int epicsParseUInt32(const char *str, epicsUInt32 *to, int base, char **units)
Convert a string to an epicsUInt32 type.
LIBCOM_API int epicsParseInt8(const char *str, epicsInt8 *to, int base, char **units)
Convert a string to an epicsInt8 type.
LIBCOM_API int epicsParseULong(const char *str, unsigned long *to, int base, char **units)
Convert a string to a unsigned long type.
LIBCOM_API int epicsParseUInt64(const char *str, epicsUInt64 *to, int base, char **units)
Convert a string to an epicsUInt64 type.
LIBCOM_API int epicsParseFloat(const char *str, float *to, char **units)
Convert a string to a float type.
LIBCOM_API int epicsParseInt16(const char *str, epicsInt16 *to, int base, char **units)
Convert a string to an epicsInt16 type.
LIBCOM_API int epicsParseUInt16(const char *str, epicsUInt16 *to, int base, char **units)
Convert a string to an epicsUInt16 type.
LIBCOM_API int epicsParseDouble(const char *str, double *to, char **units)
Convert a string to a double type.
LIBCOM_API int epicsParseLong(const char *str, long *to, int base, char **units)
Convert a string to a long type.