Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sputl(3x) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                sputl(3x)



        _________________________________________________________________
        sputl, sgetl                                           Subroutine
        access 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 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.

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






















        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)



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