Skip to content
Snippets Groups Projects
Commit a7e71717 authored by Alex Lyon's avatar Alex Lyon
Browse files

stdio: add support for %o to printf()

parent e676440e
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,13 @@ pub unsafe fn printf<W: fmt::Write>(mut w: W, format: *const c_char, mut ap: VaL ...@@ -85,6 +85,13 @@ pub unsafe fn printf<W: fmt::Write>(mut w: W, format: *const c_char, mut ap: VaL
found_percent = false; found_percent = false;
} }
'o' => {
let a = ap.get::<c_uint>();
w.write_fmt(format_args!("{:o}", a));
found_percent = false;
}
'-' => {} '-' => {}
'+' => {} '+' => {}
' ' => {} ' ' => {}
......
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