Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
972 B

  1. #include <stdio.h>
  2. #include <conio.h>
  3. int cdecl main(int argc, char **argv)
  4. {
  5. int i;
  6. int j;
  7. printf(
  8. "| |0- |1- |2- |3- |4- |5- |6- |7- |8- |9- |A- |B- |C- |D- |E- |F- |\n");
  9. printf(
  10. "|----+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+\n");
  11. for (i = 0; i < 0x10; i++) {
  12. printf(
  13. "| | | | | | | | | | | | | | | | | |\n");
  14. printf("| -%.1X |", i);
  15. for (j = 0; j < 0x10; j++) {
  16. unsigned char ch = (unsigned char)(j * 0x10 + i);
  17. if (((7 <= ch) && (ch <= 0xA)) || (ch == 0xD)) {
  18. printf(" |");
  19. } else {
  20. printf(" %.1c |", ch);
  21. }
  22. }
  23. printf("\n");
  24. }
  25. printf(
  26. "| | | | | | | | | | | | | | | | | |\n");
  27. printf(
  28. "|____|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|\n");
  29. return 0;
  30. }