whirltest.c 397 B

12345678910111213141516171819
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. char buf[4096];
  5. int x;
  6. while (fgets(buf, sizeof(buf)-2, stdin) != NULL) {
  7. for (x = 0; x < 128; ) {
  8. printf("0x%c%c, ", buf[x], buf[x+1]);
  9. if (!((x += 2) & 31)) printf("\n");
  10. }
  11. }
  12. }
  13. /* $Source: /cvs/libtom/libtomcrypt/notes/etc/whirltest.c,v $ */
  14. /* $Revision: 1.2 $ */
  15. /* $Date: 2005/05/05 14:35:58 $ */