This is an almost exact duplicate of my own question a few weeks ago.
This time, it is the reverse. I have the number (in a handy null terminated string) and I need the bytes that make this number. However, I am working in a 32 bits architecture for a micro controller, therefore I don't have the possibility of using the atoi, as the number is larger than 32 bits.
Does anyone have an idea on how to reverse the algorithm provided in the first link, as to get back the original result? My modulo arithmetic skills are failing me.
Quick Example: 155.207.231.135 to 0x[24][23][12][66][9F] (the brackets separate the bytes)