Created
November 26, 2019 00:27
-
-
Save marler8997/a1334511af6aeef63f4e8aeb2c507417 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// run with: zig run --library c test.zig | |
const std = @import("std"); | |
extern "C" fn strlen([*:0]const u8) c_int; | |
pub fn main() void { | |
std.debug.warn("strlen(\"abc\") = {}\n", strlen("abc")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment