Skip to content

Commit

Permalink
Exercise8: just print octal number. Complete
Browse files Browse the repository at this point in the history
  • Loading branch information
HawxChen committed Mar 18, 2012
1 parent 551cfdb commit 104709d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/printfmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ vprintfmt (void (*putch) (int, void *), void *putdat, const char *fmt,
// (unsigned) octal
case 'o':
// 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':
Expand Down

0 comments on commit 104709d

Please sign in to comment.