BSD 3 development
[unix-history] / usr / man / man3 / l3tol.3
CommitLineData
e6817382
BJ
1.TH L3TOL 3
2.SH NAME
3l3tol, ltol3 \- convert between 3-byte integers and long integers
4.SH SYNOPSIS
5.B l3tol(lp, cp, n)
6.br
7.B long *lp;
8.br
9.B char *cp;
10.PP
11.B ltol3(cp, lp, n)
12.br
13.B char *cp;
14.br
15.B long *lp;
16.SH DESCRIPTION
17.I L3tol
18converts a list of
19.I n
20three-byte integers packed into a character string
21pointed to by
22.I cp
23into a list of long integers pointed to by
24.IR lp .
25.PP
26.I Ltol3
27performs the reverse conversion from long integers
28.RI ( lp )
29to three-byte integers
30.RI ( cp ).
31.PP
32These functions are useful for file-system maintenance
33where the i-numbers are three bytes long.
34.SH SEE ALSO
35filsys(5)