How to convert a negative number using ntohl?


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?


Have you tried sending and receiving the negative number?
i received from others
Topic archived. No new replies allowed.