home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wfdos.zip / TASM2WF.C < prev    next >
Text File  |  1995-04-17  |  519b  |  23 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. static char buffer[255], file[255];
  6.  
  7. void main( void )
  8. {
  9.    char ind[10], *offs;
  10.    int linenum;
  11.  
  12.    fputs("TASM2WF Filter (c) Per Jessen, 1995.\n", stdout);
  13.    while (fgets(buffer,255,stdin)!=NULL)
  14.    {
  15.       linenum=-1;
  16.       sscanf( buffer, "%s %255s", ind, file );
  17.       offs=strchr(buffer, ')');
  18.       if (stricmp("**ERROR**",ind)==0)
  19.       fprintf(stdout, "%s : Error: %s", file, offs+2 );
  20.       else fputs(buffer,stdout);
  21.    }
  22. }
  23.