Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ l3tol(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fs

l3tol, ltol3

Purpose

     Converts between 3-byte integers and long integers.

Library

     Standard C Library (libc.a)

Syntax

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

     The l3tol subroutine converts a list of n 3-byte integers
     packed  into a  character  string pointed  to  by the  cp
     parameter into a list of  long integers pointed to by the
     lp parameter.

     The  ltol3 subroutine  performs  the reverse  conversion,
     from long integers (lp) to 3-byte integers (cp).

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

     Warning:  The  numerical values of the  long integers are
     machine-dependent because of possible differences in byte
     ordering.

     Related Information

     In this book:  "fs."

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