MOUT(3MP) COMMAND REFERENCE MOUT(3MP) NAME mout, min, omout, omin, fmout, fmin - multiple precision integer input/output SYNOPSIS cc ... -lmp #include <stdio.h> #include <mp.h> mout(a) min(a) omout(a) omin(a) fmout(a, fp) fmin(a, fp) MINT *a; FILE *fp; DESCRIPTION These routines are used to input and output on integers of arbitrary length. The integers are stored using the defined type MINT, which is found in /usr/include/mp.h. The subroutine mout prints the value of the given multiple precision integer on the standard output, followed by a newline. The subroutine min reads an integer from the standard input and places the value in the argument. Spaces, tabs and backslashes (\) are ignored in the input, and any `-' character negates the number. Thus, the string ``-12 5-'' is interpreted as 125. If a character other than 0-9, space, tab, newline, backslash, or `-' is encountered, the character is placed back in the input via ungetc(3s), and is ignored. Upon end of file, the value EOF is returned. The subroutines omout and omin work the same as mout and min, except that the conversions are done in octal. Omin does not check to see if the input contains digits greater than 7. The subroutines fmout and fmin work the same as mout and min, except that the given FILE pointer is used for input and output. SEE ALSO cc(1), intro(3), itom(3mp), and madd(3mp). Printed 5/12/88 1
%%index%% na:288,134; sy:422,1310; de:1732,1786; se:3518,177; %%index%%000000000085