zig-help
Best practices to deallocate recursive structures
using `std.fs.File.Writer` as `[*c]FILE`?
Answered
Metaprogramming in Zig: Extracting Function Types at Compilation
Build System
std.JSON.stringify issues
Answered
How to take user input and then compare the entered information to constant text?
New User
Standard Library
Answered
0.13.x
A Writer that print to a string
Standard Library
Answered
0.13.x
How to include tests when doing "zig build test:".
Answered
What is the idiomatic way to add test data files to a zig project and read them from a test case?
Unable to modify a mutable struct variable
Answered
0.13.x
[solved] How to initialize [*c]const [*c]const u8
0.14.x
New User
0.13.x
Standard Library
Answered
Can't bootstrap CMake from source using Zig toolchain
Answered
What kind of type is this: `struct { comptime comptime_int = ... }`?
How does --release=fast work, as opposed to -Doptimize=Fast?
Build System
How to use std.test.expectEqual when function can return an error?
How do you use "union" type inside a bitfield?
exe.main_pkg_path upgrade path
attempt to use null value
New User
Answered
0.13.x
Help structuring isometric rendering code
Dealing with constructor function where 1 field depends on another field which has a default value
Answered
Best practice when a struct holds a slice which may or may not be allocated
Answered
OutOfMemory Error when using ArrayList
Answered
Argument parsing?
0.14.x
Standard Library
How to turn while true: ++num into an iterator
0.14.x
Standard Library
New User
0.13.x
difference between std.mem.split and tokenize
Answered
How to separate build and run steps idiomatically
Struggling to make a pointer to an array coerce to a slice
[Beginner] Need to know why list.append is leaking memory
Answered
Getting constant value using compile time reflection
Answered
need help with constCast issue
Answered
Adding signed and unsigned values
cast return type of @import
New User
0.13.x
build.zig/comptime shenanigans - calculate optimal log padding?
Build System
0.14.x
Answered
How to set callback in zglfw
0.14.x
New User
Answered
is there a reason why zls fails to resolve zgui specifically?
0.14.x
Answered
zig skip printing `error: the following command failed with 1 compilation errors`
0.14.x
When elements of an array are changed inside of a while loop the values go back to undefined outside
Answered
Taking user Input
0.14.x
New User
Answered
Check if two types are identical
more idiomatic alternative to RTTI?
Answered
Taking generic functions as arguments of other generic functions
0.14.x
New User
is there c's clock() in zig?
Why slicing syntax on many item pointer produces a pointer to array instead of slice ?
Answered
Check if bool is not null and true (shorthand)?
Where to find build logs?
Compiler
New User
0.13.x
Utf8View/Iterator question
Answered
How to do arithmetic encoding in zig?
0.14.x
Standard Library
New User
Answered
installHeadersDirectory() from deps
Build System
Copy behavior
Answered
Bitset iterator skipping unset bits
0.13.x
Join reader errors.