3 ms·
You can printf a null byte just fine, you just need to provide the length, just like with fwrite: printf("%.*s", (int) nbytes, str);
by fwsgonzo 7y ago
You can printf a null byte just fine, you just need to provide the length, just like with fwrite:
printf("%.*s", (int) nbytes, str);