zig-help
Single item to [] T of size 1
0.14.x
Compiler
Trouble adding a module import to a module
Build System
0.14.x
Answered
Translate C not using wrapping operators (+%/-%)
zig cc C sources into individual .o files and linking them
Use {} in a format string
Answered
Alloc memory with custom protection.
Should an "allocator" argument be exposed when allocations are managed entirely within a fn runtime?
Answered
no point to inline comptime functions
Answered
Line by Line or all at once?
Answered
0.13.x
Style guide: how should I treat `init` function?
New User
Answered
extern struct size mismatch with C
Answered
test for different endian
Answered
return error union during comptime (repost from #zig)
Answered
Run compiler behaviour for selfhosted backend test only for one target
Answered
unable to find module 'raylib-math'
Is there any reason to require parentheses around the "constructor expression"?
Answered
Using break/continue in the while continue expression
0.13.x
Get path without base file
How can I prevent segfault when hot reloading Zig code?
Make `zig build run` run exe from zig-out instead of zig-cache.
Compressing data in an arraylist
Is it possible to chain-catch errors ?
Answered
Memory leaking even after deinit.
Answered
Must every struct with un-named fields be comptime known?
Answered
Use Zig package manager to pull C++ lib
Build System
New User
Answered
Memory leak when deinitializing ArrayList
New User
Answered
0.13.x
what is `context` for `std.mem.sort` for?
Standard Library
Answered
CreateProcessW
New User
Answered
0.12.x
zig not calling assembly function
Answered
0.13.x
command not found
New User
Answered
addSystemCommand not executing as expected
Build System
Answered
how to @tagName from enum?
How to write a callback generator
Answered
Trying to hot reload, got untraceable segfault on subsequent allocator usage
New User
Answered
0.13.x
Help with hashmaps
Answered
Is there any way to do something like "Allow discard"
Answered
0.13.x
error: comptime call of extern function
Why is the C enum type translated to c_uint instead of c_int?
convert value to slice idioms (like u8 -> []u8)
Answered
Did something change with addSystemCommand or build dependencies in 0.13.0?
Build System
0.13.x
CImport failed: file not found
Answered
0.12.x
Debug build-specific logic
Split all characters in string
0.14.x
How do you work properly with strings
0.14.x
New User
Answered
Is there a glob matching pattern for zig's fs path?
building zig from source
Trying to integrate zig and gtk4. Basic questions for porting c libraries.
Optimizing a Virtual Machine
Answered
Is there a way to get zig build to print all file dependencies of a certain build step?
DynLib loaded function behaves differently when print is or is not called.
Answered
0.12.x