home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Kernel / Em / fakeIO.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-17  |  474 b   |  34 lines

  1. #include <stdio.h>
  2. #include "Kernel/h/emTypes.h"
  3. #include "Kernel/h/kmdTypes.h"
  4.  
  5. void IOPutInt(d, w)
  6. int d, w;
  7. {
  8.   if (w < 0) printf("%0*d", -w, d);
  9.   else printf("%*d", w, d);
  10. #ifdef BSD
  11.   (void) fflush(stdout);
  12. #endif
  13. }
  14.  
  15. void IOPutString(s)
  16. StringPtr s;
  17. {
  18.   printf("%.*s", s->sizeInBytes, (char *)&s->data[0]);
  19. #ifdef BSD
  20.   (void) fflush(stdout);
  21. #endif
  22. }
  23.  
  24. void IOPutReal(f)
  25. int f;
  26. {
  27.    printf("%g", * (float *) &f);
  28. }
  29.  
  30. void IOInit()
  31. {
  32.     DebugMsg(5, "FakeIO Init\n");
  33. }
  34.