Commit | Line | Data |
---|---|---|
4cdee679 DR |
1 | .TH L3TOL 3 |
2 | .SH NAME | |
3 | l3tol, 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 | |
18 | converts a list of | |
19 | .I n | |
20 | three-byte integers packed into a character string | |
21 | pointed to by | |
22 | .I cp | |
23 | into a list of long integers pointed to by | |
24 | .IR lp . | |
25 | .PP | |
26 | .I Ltol3 | |
27 | performs the reverse conversion from long integers | |
28 | .RI ( lp ) | |
29 | to three-byte integers | |
30 | .RI ( cp ). | |
31 | .PP | |
32 | These functions are useful for file-system maintenance; | |
33 | disk addresses are three bytes long. | |
34 | .SH SEE ALSO | |
35 | filsys(5) |