zig-help
How do I treat `mmap`ed data as an array of u32 instead of u8?
0.11.x
New User
Answered
truncate *float value* to specific decimal place
How is a prng supposed to be used?
New User
Answered
0.13.x
why std.MultiArrayList dont need allocator ?
Read struct data from JS using wasm
does zig intern static strings? how to compare static strings?
Wrapping Mutex data type
compressing a buffer using zlib (this mf is undocumented!!!)
Switching on multiple values at once?
error: type '*const []u8' does not support indexing
it is passable to change index items in arraylist?
what's with async right now?
Standard Library
0.13.x
How to parse u16 from []u8
Answered
casting [*]u8 to []const u8 or something else that implies it's a string
Answered
This could probably be resolved with anytype, but I don't like that...
Answered
New User
0.13.x
Why after std.debug.print the ArrayList data is not output correctly?
Destructure optional tuple / structs in `if`s
New User
0.13.x
error: no package named 'build_options' available within package 'root'
*Map without an allocator?
how make a deep copy from hashmap ?
Zigling 076
How do function pointers work in Zig?
Answered
trying to run andrewrk/HellOS OS example | error: runtime @call not allowed in naked function
Answered
Is this a hanging pointer?
Answered
how to specify the output directory in command line?
Answered
help me with loop over hashmap
are there anything similar to c's goto statements in zig?
Answered
function to return 'tuple'
Answered
cannot @cImport header file in same directory as my zig file
How to do this in zig?
Answered
cpp files with include paths with absolute path not working when trying to build with zig build
Question about string enums
0.11.x
New User
Local packages with zig package manager
A queston about defer
New User
Answered
how to do this in the terminal
New User
Answered
How do you access ?[]T elements in a for loop as non-const
Answered
Using C libnotify in zig segfaults on any function call
Answered
How to simplify so many @as in front of @intFromFloat
Standard Library
0.13.x
How to create a "parent type" for 2 structs?
Possible to get a "test pass" indication instead of silence (setting in build.zig??)
Answered
zig as build system/"package manager" for c projects - how to change build.zig?
source for builtin module
Answered
rationale for packed structs and unions
Answered
Running into linking errors while building Zig with LLVM on an M1 Mac
Compiler
Answered
Getting a u8 slice (`[]u8`) from a string?
Answered
Field before declaration + declaration not allowed between container fields errors
New User
Answered
0.13.x
Can't init Thread Pool
copying files after build complete?
How can I simplify this type construction?
New User
Answered
0.13.x
Function pointers and C interop
Answered