mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
* move std.io.File to std.os.File * add `zig fmt` to self hosted compiler * introduce std.io.BufferedAtomicFile API * introduce std.os.AtomicFile API * add `std.os.default_file_mode` * change FileMode on posix from being a usize to a u32 * add std.os.File.mode to return mode of an open file * std.os.copyFile copies the mode from the source file instead of using the default file mode for the dest file * move `std.os.line_sep` to `std.cstr.line_sep`
Zig Examples
Working Examples
- Tetris - A simple Tetris clone written in Zig. See andrewrk/tetris.
- hello_world - demonstration of a printing a single line to stdout. One version depends on libc; one does not.
- guess_number - simple console game where you guess the number the computer is thinking of and it says higher or lower. No dependency on libc.
- cat - implementation of the
catUNIX utility in Zig, with no dependency on libc. - shared_library - demonstration of building a shared library and generating a header file for interop with C code.
- mix_o_files - how to mix .zig and .c files together as object files