|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 380 (0x17c)
Types: TextFile
Notes: UNIX file
Names: »itom.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦f4b8d8c84⟧ UNIX Filesystem
└─⟦this⟧ »libmp/itom.c«
#include "mprec.h"
/*
* Itom returns a pointer to a mint which has a value equal to
* the int "n". It allocates the space both for the mint and
* for the value. Note that itom can be used to initialize
* pointer to mint's.
*/
mint *
itom(n)
int n;
{
register mint *result;
result = (mint *)mpalc(sizeof *result);
minit(result);
mitom(n, result);
return (result);
}