[docs] Add libc dependency to sentinel-term ptr example

Fixes "dependency on library c must be explicitly specified in the build command" error
master
Shritesh 2020-01-13 20:19:50 -06:00 committed by Andrew Kelley
parent e7917d099d
commit 4c87281b5c
1 changed files with 1 additions and 0 deletions

View File

@ -2157,6 +2157,7 @@ test "allowzero" {
against buffer overflow and overreads. against buffer overflow and overreads.
</p> </p>
{#code_begin|exe_build_err#} {#code_begin|exe_build_err#}
{#link_libc#}
const std = @import("std"); const std = @import("std");
// This is also available as `std.c.printf`. // This is also available as `std.c.printf`.