Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

l3tol(3)

fs(0)



  l3tol(3)                            CLIX                            l3tol(3)



  NAME

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

  LIBRARY

    Standard C Library (libc.a)

  SYNOPSIS

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

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

  PARAMETERS

    cp   A pointer to a character string

    lp   A pointer to a list of long integers

    n    The number of three-byte character strings to be converted



  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.

    The lol3() function 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.

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

  RETURN VALUES

    See the previous discussion.

  RELATED INFORMATION




  2/94 - Intergraph Corporation                                              1






  l3tol(3)                            CLIX                            l3tol(3)



    Files:  fs(0)





















































  2                                              Intergraph Corporation - 2/94




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