Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethostsex(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

gethostsex(3)  —  Subroutines

NAME

gethostsex − get the byte sex of the host machine

SYNOPSIS

int gethostsex( );

LIBRARY

The gethostsex() function has moved from the standard C library to the libmld.a library. Programs that need to use gethostsex() must be linked with the −lmld option. 

DESCRIPTION

The gethostsex() function returns one of two constants, BIGENDIAN or LITTLEENDIAN, for the sex of the host machine. These constants are in sex.h. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026