/***************************************************************************** * * I G E T C / F R E E C R O U T I N E S * ------------------------------------------- * * Routines "igetc" and "freec" are used to allocate / deallocate a * channel number so that the user may do I/O directly without the OTS * getting in the way. * * Calling Sequence: * * i = getc(); * freec(i); * *****************************************************************************/ #include "stdio.h" /* Include std definitions */ #include "cpm.h" /* Also CP/M ones */ WORD chmask = 0; /* Allocate storage */ WORD igetc() /****************************/ { /* */ REG i,j; /* Define 2 temporaries */ /* */ j = 1; /* Start with channel 0 */ for(i=0;i