zig-help

21196 threads · Page 302 of 424

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