Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/unsafe-rust/exercise.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ string types which you need for the exercise:
You will convert between all these types:

- `&str` to `CString`: you need to allocate space for a trailing `\0` character,
- `CString` to `*const i8`: you need a pointer to call C functions,
- `*const i8` to `&CStr`: you need something which can find the trailing `\0`
- `CString` to `*const c_char`: you need a pointer to call C functions,
- `*const c_char` to `&CStr`: you need something which can find the trailing `\0`
character,
- `&CStr` to `&[u8]`: a slice of bytes is the universal interface for "some
unknown data",
Expand Down
Loading