How can I convert a hex ip (such as 42477f35), and get it to spit out the correct decimal ip (in the example before, the correct result is 66.71.127.53)?
I’d like it to take the hex ip in as a string, then output the correct result as a string too so I can use it elsewhere in the C code.
I’m not an expert in C, so if any of you can help me out, it’d be appreciated.
This is one possibility: