sputl(3X)
NAME
sputl(), sgetl() − access long integer data in a machine-independent fashion
SYNOPSIS
#include <unistd.h>
void sputl(long int value, char *buffer);
DESCRIPTION
sputl() Take the four bytes of the long integer value and place them in memory starting at the address pointed to by buffer. The ordering of the bytes is the same across all machines.
sgetl() Retrieve the four bytes in memory starting at the address pointed to by buffer and return the long integer value in the byte ordering of the host machine.
The combination of sputl() and sgetl() provides a machine-independent way of storing long numeric data in a file in binary form without conversion to characters.
Any program that uses these functions must be loaded with the object-file access-routine library libld.a.
STANDARDS CONFORMANCE
sputl(): SVID2
sgetl(): SVID2
Hewlett-Packard Company — HP-UX Release 9.0: August 1992