Add method for formatting strings.
This commit is contained in:
parent
32ccbedb7a
commit
e310eee468
2 changed files with 52 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue