Implement octal printing.
This commit is contained in:
parent
62b840a994
commit
b0880daaa3
|
@ -205,11 +205,9 @@ vprintfmt(void (*putch)(int, void*), void *putdat, const char *fmt, va_list ap)
|
||||||
|
|
||||||
// (unsigned) octal
|
// (unsigned) octal
|
||||||
case 'o':
|
case 'o':
|
||||||
// LAB 1: Replace this with your code.
|
num = getuint(&ap, lflag);
|
||||||
putch('X', putdat);
|
base = 8;
|
||||||
putch('X', putdat);
|
goto number;
|
||||||
putch('X', putdat);
|
|
||||||
break;
|
|
||||||
|
|
||||||
// pointer
|
// pointer
|
||||||
case 'p':
|
case 'p':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user