/[opencvs]/eyes/space_to_bar.c
ViewVC logotype

Contents of /eyes/space_to_bar.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Wed Mar 9 09:39:56 2011 UTC (7 years, 7 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
eyes - the best fucking mosaic out there
1 #include <stdio.h>
2 int main() {
3 int ch;
4 int mode=0;
5 while ((ch=getc(stdin)) != EOF) {
6 if (mode) {
7 if (ch=='\n') mode=0;
8 putc(ch,stdout);
9 }
10 else {
11 if (ch ==' ') {
12 ch=getc(stdin);
13 putc('|',stdout);
14 mode=1;
15 }
16 else
17 putc(ch,stdout);
18 }
19 }
20 }

  ViewVC Help
Powered by ViewVC 1.1.5