home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / Examples / p2-617 < prev    next >
Encoding:
Text File  |  1994-03-24  |  536 b   |  33 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #include "econet.h"
  5.  
  6. void ex1 (int status)
  7.  
  8. {  econet_convert_status_to_error (status, NULL, 0, 0, 0);
  9. }
  10.  
  11. void ex2 (int status)
  12.  
  13. {  os_error error;
  14.  
  15.    econet_convert_status_to_error (status, &error, sizeof error, 0, 0);
  16. }
  17.  
  18. void ex3 (int status, byte station, byte net)
  19.  
  20. {  os_error error;
  21.  
  22.    econet_convert_status_to_error (status, &error, sizeof error, station,
  23.          net);
  24. }
  25.  
  26. void ex4 (int status)
  27.  
  28. {  if (status == econet_STATUS_TRANSMITTED)
  29.    {  printf ("OK\n");
  30.       exit (0);
  31.    }
  32. }
  33.