ample/
string.rs

1pub mod terminate;
2pub use terminate::terminate;
3
4crate::r#struct!(
5    #[derive(Debug)]
6    pub struct String {
7        content: [char; 256],
8    }
9);
10
11impl String {
12    pub fn from_pointer(_: *const u8) -> Self {
13        String {
14            content: ['\0'; 256],
15        }
16    }
17}