Since you’re using NUL-terminated string-based printing to print to the console, it will stop printing at the first NUL character. I’d expect it to print “$”, though, since a NUL is after that.