/* take increment-tan-obfuscated.c, put one token per line (first 3 lines * are the include and an empty line) * then input this to this program that will format according to the motif */ #include /* generated with gimp, export as xpm, copy/paste/format */ char t[] = " ....... +" " ..... +" " .... +" " .... +" " .............. ... +" " .................. ... +" " ........... ...... ... +" " .......... .... ... +" " .......... ... ... +" " ......... .... .... +" " .. ..... ..... ..... +" " . .... ............. +" " . ... ............ +" " .... ........ +" " ... +" " .... +" " .... +" " ..... +" " ................ +" " .... +"; char l[128]; char *get_line(void) { int pos = 0; while (1) { int c = getchar(); if (c == EOF) break; if (c == '\n') break; l[pos] = c; pos++; } if (pos == 0) return 0; l[pos] = 0; return l; } int main(void) { get_line(); get_line(); get_line(); char *s = t; printf("#include \n"); printf("#include \n\n"); while (1) { if (*s == ' ') { s++; printf(" "); continue; } if (*s == '+') { s++; printf("\n"); continue; } char *l = get_line(); if (!l) break; printf("%s", l); while (*l && *s != '+' && *s) { l++; s++; } } printf("\n"); return 0; }