ntohs

Top  Previous  Next

The ntohs macro converts unsigned short integer netshort from network byte-order to host byte order.

 

Syntax

unsigned short ntohs(

unsigned short netshort

);

 

Parameters

netshort

Network byte-order unsigned short to convert.

 

Return value

The ntohs macro returns a host-ordered unsigned short.