Add method for formatting strings.

This commit is contained in:
Drew Galbraith 2024-07-26 15:57:10 -07:00
parent 32ccbedb7a
commit e310eee468
2 changed files with 52 additions and 0 deletions

View file

@ -4,6 +4,7 @@
extern crate alloc;
use alloc::boxed::Box;
use mammoth::debug;
use mammoth::define_entry;
use mammoth::syscall::debug;
use mammoth::syscall::z_err_t;
@ -15,5 +16,6 @@ pub extern "C" fn main() -> z_err_t {
debug("Testing!");
let x = Box::new("Heap str");
debug(&x);
debug!("Formatted {}", "string");
0
}