int_to_string is working, but it might be putting the string in the wrong place. In any case, I can't subsequently print that to the screen. Maybe it's not actually ending with a zero.