uudecode by tabasa

#include        <stdio.h>\x0d
#include        <stdlib.h>\x0d
#define         D(c)  (char)(((c)-' ')&077)\x0d
\x0d
int main()\x0d
{\x0d
      int     n;\x0d
      char    buf[15],a,b,c,d;\x0d
      scanf("begin %o ", &n);\x0d
      gets(buf); \x0d
      while ((n=getchar())!=EOF&&(n=D(n)))\x0d
      {\x0d
            while (n>0)\x0d
            {\x0d
                  a=D(getchar());\x0d
                  b=D(getchar());\x0d
                  c=D(getchar());\x0d
                  d=D(getchar());\x0d
                  if (n-->0)\x0d
                        putchar((a<<2)|(b>>4));\x0d
                  if (n-->0)\x0d
                        putchar((b<<4)|(c>>2));\x0d
                  if (n-->0)\x0d
                        putchar((c<<6)|d);\x0d
            }\x0d
            n=getchar();\x0d
      }\x0d
      return 0;\x0d
}\x0d

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page