Im trying to extract two (int32_t) values, and place them within a char array.
int32_t version = getVersion();
if (version < 0)
{
return;
}
else
{
//first part of number needs to be shifted right
int32_t major = (((version) >>16) & 0xFFFF);
int32_t minor = ((version) & 0xFFFF);
// need to concatenate these two values, and place a "." between them
setVersion(...);//requires a char array, should for example be "1.1"
}
can anyone give me any advice on the best way to do this? without the use of std::strings please. I would prefer a char array.
Thanks in advance