Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ l3tol(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fs(F)


 l3tol(S)                       6 January 1993                       l3tol(S)


 Name

    l3tol, ltol3 - convert between 3-byte integers and long integers

 Syntax


    cc  . . .  -lc


    void l3tol (lp, cp, n)
    long *lp;
    char *cp;
    int n;

    void ltol3 (cp, lp, n)
    char *cp;
    long *lp;
    int n;


 Description

    The l3tol function converts a list of n three-byte integers packed into a
    character string pointed to by cp into a list of long integers pointed to
    by lp.

    ltol3 performs the reverse conversion from long integers (lp) to three-
    byte integers (cp).

    These functions are useful for file-system maintenance where the block
    numbers are three bytes long.

 Note

    Because of possible differences in byte ordering, the numerical values of
    the long integers are machine-dependent.

 See also

    fs(F)

 Standards conformance

    l3tol and ltol3 are not part of any currently supported standard; they
    are an extension of AT&T System V provided by the Santa Cruz Operation.



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