DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer

mdi_ntohs(D3mdi)


mdi_ntohs -- change byte-ordering of argument

Syntax

   #include <sys/types.h>
   #include <sys/stream.h>
   #include <sys/mdi.h>
   #include <sys/ddi.h>
   

unsigned short mdi_ntohs(unsigned short);

Description

mdi_ntohs(D3mdi) changes the byte-ordering of the argument from network ordering (big-endian) to host ordering (Intel ordering is little-endian).

Return values

mdi_ntohs( ) returns the host-ordered argument. For example, the following call returns 0x10f0:
   mdi_ntohs(0xf010)

Usage

Context and synchronization

All contexts

Hardware applicability

All

Version applicability

mdi: 1, 2, 2.1

References

mdi_htons(D3mdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005