home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / utility / multitsk / popper / popstart / popstart.c next >
C/C++ Source or Header  |  1993-06-10  |  371b  |  25 lines

  1. #include <tos.h>
  2. #include <string.h>
  3.  
  4. void main (int argc, char *argv[])
  5. { int     pipe;
  6.     long     pipe_status =0;
  7.                 
  8.     pipe =(int)Fopen ("U:\\PIPE\\POPUP",FO_WRITE);
  9.     
  10.     if (pipe <= 0)
  11.     {
  12.         return;
  13.     }
  14.     
  15.     pipe_status = Fwrite (pipe,(strlen(argv[1])+1),argv[1]);
  16.     
  17.     if ( pipe_status != (strlen(argv[1])+1) )
  18.     {    
  19.         return;
  20.     }
  21.  
  22.     Fclose (pipe);
  23.     
  24.     return;
  25. }