/* File KCSUPP.C - Useful routines for C programs; Chris Kennington. RML. 5th July 1985. */ #include "stdio.h" #define CTLC 0x03 #define BKSP 0x08 #define TAB 0x09 #define CR 0x0d #define LF 0x0a #define SP 0x20 extern char blanx[], null[], pager, scrline; bell() { putchar(0x07); return; } blockmv(to,from,len) /* move block of memory */ char *to, *from; int len; /* convert to new routine movmem() by parm swapping */ { movmem(from,to,len); return; } /* end of blockmv() */ clrscrn() /* clear scrolling screen */ { int i; for (i=5; i<25; ++i) vtline(i*256,blanx); curset(6,0); return; } /* end of clrscrn() */ char decol8(line,arr,num) /* decollate command-line */ /* Splits up line into sections delimited by controls or blanks, zeros all such chars & places start-addresses into array, up to maximum of num entries; zeros rest of entries and returns count of valid entries. */ char *line, *arr[], num; { char c, count, i, j, *start; j = count = 0; start = line; for (i=0; i<80, j>= 4) != 0 ); return s; } /************* End of Aztec printf.c ***********************************/ /**************** End of file KCSUPP.C *************************/