document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. unsigned char data[][] ={
  5.   //0 1 2 3 4 5 6 7 8 9
  6.     0,0,0,0,1,1,1,0,0,0, // 0
  7.     0,0,0,1,0,0,0,1,0,0, // 1
  8.     0,0,1,0,0,0,0,0,1,0, // 2
  9.     0,0,1,0,0,0,0,0,1,0, // 3
  10.     0,0,1,1,1,1,1,1,1,0, // 4
  11.     0,1,0,0,0,0,0,0,0,1, // 5
  12.     0,1,0,0,0,0,0,0,0,1, // 6
  13.     0,1,0,0,0,0,0,0,0,1, // 7
  14.     0,1,0,0,0,0,0,0,0,1, // 8
  15.     0,0,0,0,0,0,0,0,0,0, // 9
  16. };
  17.  
  18. void usage(void)
  19. {
  20.     printf("command [option] [arg]");
  21.     exit(0);
  22. }
  23.  
  24. enum{
  25.    TRUE = 1,
  26.    FALSE = 0
  27.    MIN_X = 0,
  28.    MAX_X = 10,
  29.    MIN_Y = 0,
  30.    MAX_Y = 10,
  31.    ON = 0x1,
  32. };
  33.  
  34. int main(int argc, char*argv[])
  35. {
  36.    if (argc <= 1) usage();
  37.    
  38.    int i;
  39.    int debug = FALSE;
  40.    int bold  = FALSE;
  41.    int white = FALSE;
  42.    for (i = 1; i < argc; i++)
  43.    {
  44.       if (argv[i][0] == \'-\') {
  45.           switch(argv[i][1])
  46.           {
  47.               case \'d\': debug = TRUE; break;
  48.               case \'b\': bold  = TRUE; break;
  49.               case \'w\': white = TRUE; break;
  50.               default: usage();
  51.           }
  52.       }
  53.    }
  54.  
  55.    if (debug == TRUE)
  56.    {
  57.        if (debug   == TRUE) printf("debug   = ON");
  58.        if (bold    == TRUE) printf("bold    = ON");
  59.        if (reverse == TRUE) printf("reverse = ON");
  60.    }
  61.  
  62.     for (y = MIN_Y; y < MAX_Y; y++)
  63.         for (x = MIN_X; x < MAX_X; x++)
  64.         {
  65.             if (reverse == TRUE)
  66.             {
  67.                 if (data[y][x] == 0x1) {
  68.                    printf("_");
  69.                } else {
  70.                    printf("X");
  71.                }
  72.             } else {
  73.                 if (data[y][x] == 0x1) {
  74.                    printf("X");
  75.                } else {
  76.                    printf("_");
  77.                }
  78.             }
  79.         }
  80.     }
  81. }
');