zig/example/multiple_files/foo.zig
2015-12-01 02:08:58 -07:00

12 lines
205 B
Zig

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