mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
[docs] Add libc dependency to sentinel-term ptr example
Fixes "dependency on library c must be explicitly specified in the build command" error
This commit is contained in:
parent
e7917d099d
commit
4c87281b5c
@ -2157,6 +2157,7 @@ test "allowzero" {
|
||||
against buffer overflow and overreads.
|
||||
</p>
|
||||
{#code_begin|exe_build_err#}
|
||||
{#link_libc#}
|
||||
const std = @import("std");
|
||||
|
||||
// This is also available as `std.c.printf`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user