bash-2.03$ cat gets.c #includeint main(void) { unsigned char buf[256]; int i; (void) gets(buf); for (i = 0; i < 256; i++) { printf("%02x%c",buf[i],(i&0xf)==0xf?'\n':' '); } putchar('\n'); } bash-2.03$ gcc -o gets gets.c bash-2.03$ ./gets foo^@bar 66 6f 6f 00 62 61 72 00 00 00 00 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 03 25 00 00 00 01 ec f1 fe 64 00 00 00 00 ec f2 13 54 00 01 03 25 00 00 00 00 ec f2 10 98 ec f2 10 98 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ec f1 f4 dc 00 00 00 00 00 08 a9 dc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ec f1 f4 dc 00 00 00 00 ec ef ab 14 ec ea 5b 58 ec ea 37 00 00 00 00 00 00 00 00 00 ef ff f8 28 00 01 04 d0 00 00 00 03 ef ff f8 8c 00 00 00 04 ef ff f8 94 bash-2.03$
bsy+cse127w02@cs.ucsd.edu, last updated
email bsy.