ITOM(3MP) COMMAND REFERENCE ITOM(3MP) NAME itom, mcmp, move - multiple precision integer assignment and comparison SYNOPSIS cc ... -lmp #include <mp.h> MINT *itom(n) int n; int mcmp(a, b) MINT *a, *b; move (a, b) MINT *a, *b; DESCRIPTION These routines perform various functions on integers of arbitrary length. The integers are stored using the defined type MINT, which is found in /usr/include/mp.h. The function itom is used to initialize a multiple precision integer. The value of the parameter n is stored in a newly-allocated structure. The return value is a pointer to this structure. The function mcmp is used to compare two multiple precision integers. The return value is 0 if the two are equal, greater than 0 if the first argument is greater than the second, and less than 0 otherwise. The subroutine move is the assignment operation. The value of the first argument is copied to the second argument. CAVEATS The argument given to itom is an integer, but the value must fit into a short integer (between -32768 and 32767). Other values will result in strange behavior. This is only true for initialization. Other routines work correctly for any size value. SEE ALSO cc(1), intro(3), madd(3mp), and mout(3mp). Printed 5/12/88 1
%%index%% na:288,128; sy:416,1046; de:1462,1019; ca:2481,395; se:2876,180; %%index%%000000000098