Skip to main content

luaur_vm/functions/
trimzero.rs

1#[inline]
2pub unsafe fn trimzero(mut end: *mut core::ffi::c_char) -> *mut core::ffi::c_char {
3    while *end.offset(-1) == b'0' as core::ffi::c_char {
4        end = end.offset(-1);
5    }
6
7    end
8}