Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sputl(3X) — sys5 — Apollo Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought



SPUTL(3X)                DOMAIN/IX SYS5                 SPUTL(3X)



NAME
     sputl, sgetl - access long integer data in a machine-
     independent fashion

USAGE
     void sputl(value, buffer)
     long value;
     char *buffer;

     long sgetl(buffer)
     char *buffer;


DESCRIPTION
     Sputl takes the four 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, regardless
     of machine.

     Sgetl retrieves the four bytes in memory starting at the
     address buffer points to, and returns 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 converting it to characters.



























Printed 12/4/86                                           SPUTL-1





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