Closed emorchy closed 3 years ago
If the program looks for a zero, it will stop at a null terminator. However, the "msg" ends with a newline (hex 0x0A). In decimal, a newline is 10 instead of 0, but I believe it is more simple to compare the newline in hex (0x0A).
After further testing, I realized that comparing with a newline would exclude the newline from the output. My apologies.
If the program looks for a zero, it will stop at a null terminator. However, the "msg" ends with a newline (hex 0x0A). In decimal, a newline is 10 instead of 0, but I believe it is more simple to compare the newline in hex (0x0A).