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

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