whirltest.c 368 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. /* ref: $Format:%D$ */
  14. /* git commit: $Format:%H$ */
  15. /* commit time: $Format:%ai$ */