Skip to content

Commit

Permalink
Be explicit about using crates.io's libc crate
Browse files Browse the repository at this point in the history
Fixes #28053
  • Loading branch information
steveklabnik committed Aug 28, 2015
1 parent 6f28232 commit 1c44722
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/doc/trpl/ffi.md
Expand Up @@ -496,9 +496,11 @@ strings are not terminated with `\0`. If you need a NUL-terminated string for
interoperability with C, you should use the `CString` type in the `std::ffi`
module.

The standard library includes type aliases and function definitions for the C
standard library in the `libc` module, and Rust links against `libc` and `libm`
by default.
The [`libc` crate on crates.io][libc] includes type aliases and function
definitions for the C standard library in the `libc` module, and Rust links
against `libc` and `libm` by default.

[libc]: https://crates.io/crates/libc

# The "nullable pointer optimization"

Expand Down

0 comments on commit 1c44722

Please sign in to comment.