zig-help
automatically pad packed struct?
Using std.StringHashMap in function
Standard Library
New User
default install prefix
VFTable vs tagged union
New User
0.13.x
Generic function that returns same type when used with different parameters
Answered
What are the reasons to use an owned slice over an ArrayList?
Answered
IP to integer or cross platform `inet_aton`
avoiding trace trap with C function expecting `[*c]?*anyopaque`
Answered
using LoggingAllocator
Answered
Is it possible to determine if a string is literal or if it has to be freed?
ANSI C exercises in zig
Saving to kv pairs
Comptime Map
New User
0.13.x
comparison with undefined
Increase capacity of a std.ArrayList
Answered
Converting ipaddress to u32
Function pointer to function taking std.io.Writer
troubles with making my own programming language
local library with build.zig
Zig WASM running out of memory after repeated use
What does comptime if do in this case
Answered
What is the meaning of `.{}`?
How does AstGen's string_table work?
Standard Library
Answered
How to construct a aligned slice literal
Best way to get the union tag given a payload type?
JSON parsing array with different types
Standard Library
0.13.x
Trying to set external library name and name for a WASM host function
How can make a slice of `[]u8` into a `Reader`?
Cross-Compiling From Windows
Answered
linker error when building from source
How to use `random()`?
Comptime reflection for extern structs and other composite types
Answered
Build fail "error code 5"
Build system question
trying to implement a simple event emitter, too many weird errors
Work on a project and on its dependency(-ies) at the same time
0.11.x
0.13.x
Sending structs via sockets with zig
How to read/write PNG images
How to add C source files to zig build?
Import code in sibling directories
Compiler
New User
0.13.x
function return type switch
__uuidof zig equivalent
error: expected type 'type', found 'comptime_int'
Answered
Print out wrong unicode?
Stuck experimenting with a function that converts ints to strings without allocation
Answered
Confused about how to properly use the build system
Answered
0.13.x
De-reference C function pointer
Trying to build Lua (Luau) as a lib
close enough OO
Answered
Help finding memory leak
Answered