zig-help
Find which Union field is active
New User
0.12.x
Need help with compilation of older zig project
How can I save a `std.heap.GeneralPurposeAllocator(.{}){}` as a struct field?
slice to slice of slices at runtime
0.14.x
New User
Answered
sorting StringArrayHashMap
Standard Library
New User
Am I making good use of ArenaAllocator or am I abusing it?
Construct array at comptime
Answered
@embedFile outside root path with relative path in v0.13.0
Answered
How cast [N][*:0]const то [*c][*c]const?
Answered
How can I iterate over the decls of a struct, but not just the names
Answered
possible frontend bug
Compiler
What are my options for polymorphism?
New User
0.13.x
How do I return a slice of strings safely?
Answered
Review my zig code
New User
Answered
help with const qualifier
Answered
Remove error from error set
Answered
0.13.x
Hihi
New User
How does std.fs.File know which file it is?
Answered
Is there a way to join paths on the stack?
How to produce C header for zig library?
Made the typical island counter on a 2d array in zig,
New User
String literal as slice
Answered
0.13.x
readUntilDelimiterOrEofAlloc
Standard Library
Compiler
Answered
0.13.x
How are you able to create a slice from two pointers?
0.14.x
Compiler
Answered
C library calls for *const anyopaque
Answered
Kqueue simple event loop
How to use std.mem.sliceTo()
Detect X11 or Wayland in the same binary
New User
0.12.x
Accessing context from an ad-hoc function
New User
Answered
Convert string to lower case in place
Make package manager also download source code locally
Answered
Unsure what is causing the memory leak here
New User
Answered
Can I check if a file exists without opening it?
Conditional Import
`std.fmt.format` seems to cause an infinite loop?
How to read a float (etc) from memory?
How exactly do arrays work in zig?
New User
Answered
What is the intended way to use the new doc system?
Switch from 0.12 to 0.14
Answered
I cannot build Zap
Build System
New User
0.13.x
Linux stat
Standard Library
New User
Answered
Avoid leak and segfault
New User
Answered
can't return errors from switch
New User
0.13.x
Zig build, how to import from different folder.
Build System
0.12.x
Unreachable code error while trying to iterate through a directory
Inlining runtime-known enum to generate code at comptime
0.14.x
Answered
Quick question about comptime
cast `[*c][*c]u8` to `[][]u8`
Answered
0.12.x
Parse json without a defined struct
Standard Library
New User
I need more help with assigning values to unions
Answered
0.13.x