SPUTL(3k,L) AIX Technical Reference SPUTL(3k,L) ------------------------------------------------------------------------------- sputl, sgetl PURPOSE Accesses long numeric data in a machine-independent fashion. LIBRARY Object File Access Routine Library (libld.a) SYNTAX void sputl (value, buffer) long sgetl (buffer) long value; char *buffer; char *buffer; DESCRIPTION The sputl subroutine stores the 4 bytes of the value parameter into memory starting at the location pointed to by the buffer parameter. The order of the bytes is the same across all machines. The sgetl subroutine retrieves 4 bytes from memory starting at the location pointed to by the buffer parameter. It then returns the bytes as a long value with the byte ordering of the host machine. Using sputl and sgetl subroutines together provides a machine-independent way of storing long numeric data in an ASCII file. For example, the numeric data stored in the portable archive file format is accessed with the sputl and sgetl subroutines. RELATED INFORMATION In this book: "frexp, ldexp, modf" and "ar." Processed November 7, 1990 SPUTL(3k,L) 1