whirltest.c 272 B

1234567891011121314
  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. }