Implement octal printing.

This commit is contained in:
Danila Fedorin 2019-04-04 20:37:11 -07:00
parent 62b840a994
commit b0880daaa3
1 changed files with 3 additions and 5 deletions

View File

@ -205,11 +205,9 @@ vprintfmt(void (*putch)(int, void*), void *putdat, const char *fmt, va_list ap)
// (unsigned) octal
case 'o':
// LAB 1: Replace this with your code.
putch('X', putdat);
putch('X', putdat);
putch('X', putdat);
break;
num = getuint(&ap, lflag);
base = 8;
goto number;
// pointer
case 'p':