mtox (ULTRIX) mtox (ULTRIX)
NAME
xtom, mtox, mfree - Performs multiple precision integer arithmetic
SYNOPSIS
MINT * xtom(MINT *key)
char * mtox(MINT *key)
char * mfree(MINT *a)
ABSTRACT
Pointers to a MINT should be initialized using the function itom(),
which sets the initial value to n. Alternatively, xtom() may be used to
initialize a MINT from a string of hexadecimal digits. mfree() may be
used to release the storage allocated by the itom() and xtom() rou‐
tines.
The mtox() function provides the inverse of xtom() function. To
release the storage allocated by mtox(), use the free() function(see
malloc(3) and malloc(5)).
BSD COMPATIBILITY
The Digital UNIX system provides the libbsd.a library to allow you to
use library functions that are compatible with ULTRIX BSD library func‐
tions. To use these functions, your program needs to be compiled with
-D_BSD, the -lbsd and the -lmp options.
Provided for BSD compatibility for performing arithmetic on integers of
arbitrary length.
RELATED INFORMATION
Digital UNIX Functions:
mp(3), malloc(3), malloc(5)
mtox (ULTRIX)