blob: 750099644d3e831c4e5390358ce66f7a5a45106f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
.TH L3TOL 3
.CT 2 data_man
.SH NAME
l3tol, ltol3 \(mi convert between 3-byte integers and long integers
.SH SYNOPSIS
.nf
.B l3tol(lp, cp, n)
.B long *lp;
.B char *cp;
.PP
.B ltol3(cp, lp, n)
.B char *cp;
.B long *lp;
.fi
.SH DESCRIPTION
.I L3tol
converts a list of
.I n
three-byte integers packed into a character string
pointed to by
.I cp
into a list of long integers pointed to by
.IR lp .
.PP
.I Ltol3
performs the reverse conversion from long integers
.RI ( lp )
to three-byte integers
.RI ( cp ).
.PP
These functions are useful for file-system maintenance
where the block numbers are three bytes long.
.SH SEE ALSO
.IR filsys (5)
|