Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sputl(3X) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

sputl(3X)                                                         sputl(3X)

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

SYNOPSIS
     cc [flag ...] file ... -lmld

     #include <ldfcn.h>

     void sputl(long value, char *buffer);

     long sgetl(const 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 across all machines.

     sgetl() retrieves the four 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.

     The combination of sputl() and sgetl() provides a machine-independent
     way of storing long numeric data in a file in binary form without
     conversion to characters.






























Page 1                       Reliant UNIX 5.44                Printed 11/98

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