-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 It reuses the error type from from_vec_with_nul, which may or may not be the right choice.
- Loading branch information
1 parent
6fd7e90
commit 23fd684
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters