You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there's an interesting use-case for heapless::Vec to represent always null-terminated strings for FFI purposes
I've done something like this before in unixstring so I believe I could make a PR for this if the maintainers would like this functionality
// How it could lookletmut path = heapless::CString<128>;
path.append("/home/")?;
path.append(get_username())?;
path.append("/.config/my_app")?;let config_dir_exists = nix::unistd::access(path.as_cstr(),AccessFlags::F_OK).is_ok();
The text was updated successfully, but these errors were encountered:
I believe there's an interesting use-case for
heapless::Vec
to represent always null-terminated strings for FFI purposesI've done something like this before in unixstring so I believe I could make a PR for this if the maintainers would like this functionality
The text was updated successfully, but these errors were encountered: