ntohs()

convert 16-bit value from network to host byte order 

Function


SYNOPSIS

#include <machine/endian.h>

unsigned short ntohs(unsigned short netshort);


DESCRIPTION

This subroutine converts values between the host and network byte order. Specifically, ntohs() converts 16-bit quantities from network byte order to host byte order.


PARAMETERS

netshort 

Specifies the 16-bit quantity.


RETURN VALUES

ntohs() returns the host byte-ordered netshort.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
htonl(), htons(), ntohl()


PTC MKS Toolkit 10.4 Documentation Build 39.