We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c2rust --version C2Rust 0.18.0 (2023-12-03)
#include <stdio.h> int main() { const char *volatile str = NULL; int c = (unsigned char)*str++; return 0; }
use ::libc; unsafe fn main_0() -> libc::c_int { let mut str: *const libc::c_char = 0 as *const libc::c_char; let fresh0 = ::core::ptr::read_volatile::< *const libc::c_char, >(&str as *const *const libc::c_char); ::core::ptr::write_volatile( &mut str as *mut *const libc::c_char, (::core::ptr::read_volatile::< *const libc::c_char, >(&str as *const *const libc::c_char)) .offset(1), ) let mut c: libc::c_int = *fresh0 as libc::c_uchar as libc::c_int; return 0 as libc::c_int; } pub fn main() { unsafe { ::std::process::exit(main_0() as i32) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
C
Output
The text was updated successfully, but these errors were encountered: