Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sputl(S) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     SPUTL(S)                 XENIX System V                  SPUTL(S)



     Name
          sputl, sgetl - Accesses long integer data in a machine-
          independent fashion.

     Syntax
          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 for all
          machines.

          Starting at the address pointed to by buffer, sgetl
          retrieves the four bytes in memory and returns the long
          integer value in the byte ordering of the host machine.

          sputl and sgetl provide a machine-independent way to store
          long numeric data in binary form in a file without
          converting to characters.






























     Page 1                                           (printed 8/7/87)



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