ndless 0.6.1

Rust library for interacting with Ndless for the TI-Nspire
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::cstr;
use crate::prelude::*;
pub fn print(msg: impl Into<String>) {
    let _msg = cstr!(msg.into());
    /*if unsafe { ndless_sys::fputs(msg.as_ptr(), stdout) } < 0 {
        panic!("Error writing to stdout");
    }*/
    unimplemented!()
}

pub fn println(msg: impl Into<String>) {
    let msg = cstr!(msg.into());
    if unsafe { ndless_sys::puts(msg.as_ptr()) } < 0 {
        panic!("Error writing to stdout");
    }
}