Allow NUL characters in strings (#1405)

This commit is contained in:
Sylvie
2024-06-18 14:26:18 -04:00
committed by GitHub
parent 9cc595b2cc
commit 623c3f662c
15 changed files with 91 additions and 37 deletions

View File

@@ -36,6 +36,9 @@ char const *printChar(int c) {
case '\t':
buf[2] = 't';
break;
case '\0':
buf[2] = '0';
break;
default: // Print as hex
buf[0] = '0';