summaryrefslogtreecommitdiff
path: root/static/v10/man3/l3tol.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/v10/man3/l3tol.3')
-rw-r--r--static/v10/man3/l3tol.334
1 files changed, 34 insertions, 0 deletions
diff --git a/static/v10/man3/l3tol.3 b/static/v10/man3/l3tol.3
new file mode 100644
index 00000000..75009964
--- /dev/null
+++ b/static/v10/man3/l3tol.3
@@ -0,0 +1,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)