Skip to content

Commit

Permalink
add as_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval authored Nov 13, 2024
1 parent 52ec29e commit 2b7faee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/src/challenges/0013-cstr.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ and that they maintain the overall safety invariant of `CStr` when called correc
| `to_bytes_with_nul` | `core::ffi::c_str` |
| `bytes` | `core::ffi::c_str` |
| `to_str` | `core::ffi::c_str` |
| `as_ptr` | `core::ffi::c_str` |

3. Annotate and verify the safety contracts for the following unsafe functions:

Expand Down

0 comments on commit 2b7faee

Please sign in to comment.