The Stable Pseudo Code is this mentioned on the following link. I would like to implement it in c++. I am not able to understand and perform these signof and exponentof and mantissaof operations.
how to convert double between host and network byte order?
void htond (const double hostDouble, uint8_t result[8])
{
result[0] = signOf(hostDouble);
result[1] = exponentOf(hostDouble);
result[2..7] = mantissaOf(hostDouble);
}