1: #include "stdio.h"
   2: main()
   3: {
   4:     register c, i;
   5: 
   6:     printf("___________\n");
   7:     while ((c = getchar()) != EOF)
   8:         putone(c);
   9:     printf("___________\n");
  10: }
  11: 
  12: putone(byte)
  13: register byte;
  14: {
  15:     register i;
  16: 
  17:     putchar('|');
  18:     for (i=7; i>=0; --i) {
  19:         if (i==2)
  20:             putchar('.');
  21:         if (byte & (1 << i))
  22:             putchar('o');
  23:         else
  24:             putchar(' ');
  25:     }
  26:     putchar('|');
  27:     putchar('\n');
  28: }

Defined functions

main defined in line 2; never used
putone defined in line 12; used 1 times
  • in line 8
Last modified: 1987-08-27
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1125
Valid CSS Valid XHTML 1.0 Strict