1 /* copyleft (C) GPL3 {{{2
4 * Author: arrow <arrow_zhang@sdc.sercomm.com>
5 * Created at: Tue Jan 8 23:04:51 2008
15 int main(int argc
, char *argv
[])
19 int goto_prev
= FALSE
, y
, x
;
21 printf("usage: %s<a c file name>\n", argv
[0]);
24 fp
= fopen(argv
[1], "r");
26 perror("cannot open input file");
31 while ((ch
= fgetc(fp
)) != EOF
) {
32 if (prev
== '/' && ch
== '*') {
36 if (goto_prev
== TRUE
) {
39 printw("%c%c", '/', ch
);
46 if (prev
== '*' && ch
== '/') {
56 /* vim:fdm=marker:ts=8:ft=c:norl:fdl=1: