home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / autolib / auto_pipe_reader.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-13  |  394 b   |  22 lines

  1. /*
  2. ### Read the input pending on the pipe ###
  3. */
  4.  
  5. #include <stdio.h>
  6. #include <suntool/sunview.h>
  7. #include <suntool/panel.h>
  8. #include <sunwindow/notify.h>
  9.  
  10. Notify_value auto_pipe_reader(item,fd)
  11. Panel_item item;
  12. int fd;
  13. {
  14.     extern FILE *fp_auto_fromchild;
  15.     extern char auto_file_name[];
  16.  
  17.     if(strncmp(auto_file_name,"@auto",5)==0){
  18.         auto_load_data(fp_auto_fromchild);
  19.     }
  20.     return(NOTIFY_DONE);
  21. }
  22.