zig-help
tgz decompress
Standard Library
New User
Answered
Setting --no-entry from build.zig
How do I check whether a certain CPU feature is supported?
Answered
can you switch on a tuple?
Answered
Why is 0 not a compiled const (New User)
Compiler
Answered
New User
0.13.x
embedFile with generated artifact
Answered
0.13.x
error: wasm-ld: undefined symbol: strlen
How can I coerce a Value into its corresponding field of a tagged union?
Answered
StringHashMap mangles internal structs allocated data
Answered
importing c header file
Compiler
New User
Answered
Why does running this example reach unreachable code?
Answered
Value with comptime-only type 'comptime_int' depends on runtime control flow
Answered
How to fix "error: import of file outside package path"?
New User
twiddling zig's knobs
Freeing an ArrayList of big ints?
Standard Library
New User
Answered
Is there a built-in function for converting between built-in vector types similar to `@as`?
New User
Answered
Reading string and int from stdin
Answered
brew --HEAD fails to install
0.13.x
access of union field 'Pointer' while field 'Struct' is active
Answered
How to collect from std.mem.tokenize?
HashMap key duping safe?
Inline assembly gives incorrect results
Answered
is there a way to get the test name from inside the test block?
Answered
What's the best way to print sub command help
New User
zig build test not running on a fresh project
C (s)scanf lib/replacement?
Standard Library
New User
can i pass arguments into build.zig during the compilation to define variables?
Answered
get typeinfo for methods of struct
mutating arrays within functions
Answered
Can I define methods outside the struct block?
Answered
Strange behavior on ArrayList
Answered
using C type that has the same name as a C function?
Answered
stdlib function for finding enum "count"?
Answered
specify number of digits after the decimal point in formatting
Answered
Proper way to close child stdin
Missed optimizations involving non-power-of-two integers?
New User
0.13.x
weird types behavior?
Concurrent Collections?
New User
How to add to HashMap(int, void)
Answered
Return a function from comptime
New User
See code produced by inline loops, functions, etc
Compiler
New User
Answered
How to find the unexpected token when parsing JSON
Standard Library
New User
Stack like data structure
0.13.x
How to print struct field default value?
Growable writer
Standard Library
returning computed strings with allocPrint() vs returning Formatter(f)
Learning Zig
0.10.x
New User
Define fn taking pointer to type that can use dot syntax
Instantiate struct with union type inside
C Lua bad translated NULL