How to convert a negative number using ntohl?

Hi,

I receive a negative number but in big endian order. ntohl seems work for unsigned only.

Is there a method for me to translate it back to the original negative number from big endian?

Thanks

Chris
Have you tried sending and receiving the negative number? http://ideone.com/zZFtvC
i received from others
Topic archived. No new replies allowed.