z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


ntohs()

z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
SC27-3660-00

The ntohs() call translates a short integer from network byte order to host byte order.

#include <manifest.h>
#include <bsdtypes.h>
#include <in.h>
 
unsigned short ntohs(unsigned short a)
Parameter
Description
a
The unsigned short integer to be put into host byte order

Return values

Returns the translated short integer

Related calls

ntohl(), htons(), htonl()

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014