Currently mucking around with a keylogger. Looking at a few examples, I was just wondering, but why does this keylogger print the keystroke as a string here:
key_stroke is an int but is treated as a string. The programmer is an optimist and expects that the value and the terminating 0 is at the right position to form a valid string.