52 unsigned long long tmp;
54 if (!str || !serial_number)
58 tmp = strtoull(str, &end_ptr, 10);
60 if (*end_ptr !=
'\0' || errno != 0 || tmp > UINT32_MAX)
JAYLINK_API int jaylink_parse_serial_number(const char *str, uint32_t *serial_number)
Convert a string representation of a serial number to an integer.
Public libjaylink header file to be used by applications.
#define JAYLINK_API
Macro to mark public libjaylink API symbol.
static uint32_t serial_number