Skip to content
New issue

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

add CString::from_vec_until_nul #96186

Closed

Commits on Jan 29, 2023

  1. add CString::from_vec_until_nul

    This adds a member fn that converts a Vec into a CString; it is intended
    to more useful than from_vec_with_nul (which requires that the caller
    already know where the nul byte is).
    
    This is a companion to CStr::from_bytes_until_nul, and shares the
    feature gate: cstr_from_bytes_until_nul
    ericseppanen committed Jan 29, 2023
    Configuration menu
    Copy the full SHA
    2de237a View commit details
    Browse the repository at this point in the history