Facebook
From Colossal Kitten, 6 Years ago, written in C.
Embed
Download Paste or View Raw
Hits: 239
  1. void writeByte(unsigned short b)
  2. {
  3.        
  4.         short x = (b / 1000);  
  5.        
  6.         if(x > 0) putchar(x + '0');
  7.         else putchar(' ');
  8.         x = (b % 1000) / 100;
  9.        
  10.         putchar(x + '0');
  11.         x = (b % 100) / 10;
  12.         putchar('.');
  13.        
  14.         putchar(x + '0');
  15.         x = b % 10;
  16.         putchar(x + '0');
  17. }
  18.  
  19. void puts(char* n)
  20. {
  21.         while(*n)
  22.         {
  23.                 putchar(*n);
  24.                 n++;
  25.         }
  26. }