LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hton1 function not found! (https://www.linuxquestions.org/questions/linux-newbie-8/hton1-function-not-found-80041/)

abhijit 08-07-2003 10:59 PM

hton1 function not found!
 
Hi all,
I included <netitnet/in.h> as mentioned in "man htons" but when I am trying to compile i am getting an error for "hton1()"
please advise....

cheers.
abhijit

kezz 08-08-2003 12:16 AM

It might be the font but it looks like you've written hton1 instead of htonl (an L).

kezz

kezz 08-08-2003 12:18 AM

if the above is true it is because the function is an abbreviation of Host TO Network Long. Similarly there is also htons (host to network short) and reverse versions ntohl and htons.

kezz


All times are GMT -5. The time now is 06:26 AM.