home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lisp / interpre / xlispdos / source / stuff.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-12-02  |  759 b   |  49 lines

  1. /* stuff.c - a template for the machine specific code */
  2.  
  3. #include <stdio.h>
  4.  
  5. /* osinit - os specific initialization */
  6. osinit(banner)
  7.   char *banner;
  8. {
  9.     printf("%s\n",banner);
  10. }
  11.  
  12. /* osfinish - os specific finalization */
  13. osfinish()
  14. {
  15. }
  16.  
  17. /* osgetc - get a character from a file (or stdin) */
  18. int osgetc(fp)
  19.   FILE *fp;
  20. {
  21.     return (getc(fp));
  22. }
  23.  
  24. /* osputc - write a character to a file (or stdout) */
  25. int osputc(ch,fp)
  26.   int ch;
  27.   FILE *fp;
  28. {
  29.     return (putc(ch,fp));
  30. }
  31.  
  32. /* osfinit - add os specific functions to the *obarray* */
  33. osfinit()
  34. {
  35. }
  36.  
  37. /* oscheck - check for control characters */
  38. oscheck()
  39. {
  40. }
  41.  
  42. /* osrand - return a random number between 0 and n-1 */
  43. int osrand(n)
  44.   int n;
  45. {
  46.     return (0);
  47. }
  48.  
  49.