zig/example/multiple_files/foo.zig
Andrew Kelley e411467e1d add number literal type
it gets implicitly casted to whatever is needed.

closes #24
2015-12-14 02:46:37 -07:00

12 lines
206 B
Zig

use "libc.zig";
// purposefully conflicting function with main.zig
// but it's private so it should be OK
fn private_function() {
puts(c"it works!");
}
pub fn print_text() {
private_function();
}