1 2 3 4 5 6 7 8 9
#include <stdio.h> int main(void) { int c; while ((c = getchar()) >= 0) printf("\\x%X", c); }