6 int main(int argc
, char *argv
[])
9 char cmd
[132], buf
[BUFSIZ
], *argp
, *error_file
, target
[132], *mms
;
10 int err
= 0, err_line
= 0;
26 if (!*(error_file
= ++argp
))
43 vim_snprintf(cmd
, sizeof(cmd
), "%s/output=tmp:errors.vim_tmp %s",
46 fpi
= fopen("tmp:errors.vim_tmp", "r");
47 fpo
= fopen(error_file
, "w");
48 while (fgets(buf
, BUFSIZ
, fpi
))
50 if (!memcmp(buf
, "%CC-", 4))
53 buf
[strlen(buf
)-1] = '\0';
60 if (strstr(buf
, _("At line")))
66 buf
[strlen(buf
)-1] = '\0';
69 fprintf(fpo
, "%s", buf
);
73 while (!delete("tmp:errors.vim_tmp"))