Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sputl(3X) — GL2 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(4)

SPUTL(3X)  —  Silicon Graphics

NAME

sputl, sgetl − access long numeric data in a machine independent fashion. 

SYNOPSIS

sputl ( value, buffer )
long value;
char ∗buffer;

long sgetl ( buffer )
char ∗buffer;

DESCRIPTION

Sputl(3X) will take the 4 bytes of the long 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 will retrieve the 4 bytes in memory starting at the address pointed to by buffer and return the long value in the byte ordering of the host machine. 

The usage of sputl(3X) and sgetl in combination provides a machine independent way of storing long numeric data in an ASCII file.  The numeric data stored in the portable archive file format (see ar(4)) is written and read into/from buffers with sputl(3X) and sgetl respectively. 

A program which uses these functions must be loaded with the object file access routine library libld.a. 

SEE ALSO

ar(4). 

Version 2.3  —  July 04, 1985

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