sputl(3X) sputl(3X)
NAME
sputl, sgetl - access long integer data in a machine
independent fashion
SYNOPSIS
void sputl (value, buffer)
char *buffer;
long sgetl (buffer)
char *buffer;
DESCRIPTION
sputl takes the 4 bytes of the long integer value and places
them in memory, starting at the address pointed to by
buffer. The ordering of the bytes is the same across all
machines.
sgetl retrieves the 4 bytes in memory, starting at the
address pointed to by buffer, and returns the long integer
value in the byte ordering of the host machine.
Use of sputl and sgetl provide a machine independent way of
storing long numeric data in a file in binary form without
conversion to characters.
A program that uses these functions must be loaded with the
object file access routine library libld.a.
SEE ALSO
ar(4).
Page 1 (last mod. 1/14/87)