summaryrefslogtreecommitdiff
path: root/src/DrawResources/Filtre.c
blob: 142f9f4f445868641b40c52aa48e13c4bd1028ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#include <stdio.h>
#include <stdlib.h>



int main(int argc,char **argv) { 
  char t[10000];
  do { 
    if(fgets(t,10000,stdin)) { 
      if (t[0] == 'D' && t[1] == 'r' && t[2] == 'a' && t[3] == 'w' &&
	  t[4] == '[' && t[5] == '1' && t[6] == ']')
	fputs(t+9,stdout);
      else
	fputs(t,stdout);
    }
  }
  while(!feof(stdin));

  return(1);
}