home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CSWITCH.ZIP / TEST5.C < prev    next >
C/C++ Source or Header  |  1990-06-27  |  393b  |  23 lines

  1. #include "stdio.h"
  2.  
  3. FILE *fp, *fp2;
  4. char buf[200];
  5.  
  6. char *passmsg="test5 pass complete";
  7.  
  8. main()
  9. {
  10.         fp=fopen("test5.c","r");
  11.         if(fp==NULL)
  12.         {
  13.             send_md_msg(1,"Error opening file.",30);
  14.             goto leave;
  15.         }
  16.         while(fgets(buf,80,fp)!=NULL);
  17.         fclose(fp);
  18. leave:
  19.         send_md_msg(1,passmsg, strlen(passmsg)+1);
  20. }
  21.  
  22.  
  23.