Basic arithmetic will work:
(buffer[4]*10 + buffer[5])*10 + buffer[6]
Or, if you want that as a function,
unsigned int base10(const char *const buffer, const int len)
{
unsigned int ...
Type: Posts; User: Nominal Animal
Basic arithmetic will work:
(buffer[4]*10 + buffer[5])*10 + buffer[6]
Or, if you want that as a function,
unsigned int base10(const char *const buffer, const int len)
{
unsigned int ...