Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It isn't actually used in printf; there's one more argument than there are %c specifiers. gcc -Wall warns about that.


Good catch! And even if we do add another "%c" to fix it, I don't know why we would need to null-terminate a null-terminated string.


If you added another %c, it would print the NUL to stdout; it doesn't terminate anything.


You're right. My mistake.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: