Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Please see the "htonl" function and its brethren in <arpa/inet.h>.


As stated elsewhere, these do host to big endian and vice versa. No little endian support, though most of us are working on LE machines ofc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: