Skip to content
Snippets Groups Projects
Commit b9432848 authored by rsc's avatar rsc
Browse files

handle printf("%s\n", 0)

parent 43baa1f2
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,8 @@ printf(int fd, char *fmt, ...)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment