zig-help

21196 threads · Page 306 of 424

std.io.poll(): Does not do what it says on the label | what's the alternative? 36 messages
Standard Library Answered 0.13.x
Loading shared library and calling function that uses allocator segfaults 92 messages
Answered
functions that allocate and return memory 12 messages
Answered
zls turn off function parameters declaration insertion on auto-complete (vscode)? 6 messages
New User Answered
How to convert the output of this code to json? 2 messages
does zig have types system similar to typescript? 21 messages
Does Zig have lamba functions? 47 messages
Unwrapping optional pointer not branching properly 11 messages
Answered
How to compile library to wasm? 13 messages
os.system__struct_2351 has no member 'fd_t' 14 messages
Weird compilation error 9 messages
addStaticLibrary results in 8-byte .a/.lib file 23 messages
How to fix this runtime memory access violation 103 messages
filter function 18 messages
Answered
I can't figure how to use this bitflags 5 messages
enum tag value already taken 10 messages
Comptime function pointers 12 messages
Answered
map function 31 messages
Answered
Concise way to instantiate generic types? 9 messages
run `zig build run` from parent dir or somewhere else 4 messages
New User Answered
Why does this function crash in Debug release mode? 70 messages
how do i install a package 133 messages
0.11.x New User Answered
inline for to iterate over tuple 11 messages
Answered
error: async has not been implemented in the self-hosted compiler yet 7 messages
0.11.x
Cross compilation not behaving as expected 4 messages
Compiler New User 0.13.x
how pass type as argument to function ? 2 messages
Answered
First zig program, would appreciate some feedback 4 messages
Answered
Arrays, Slices and Pointers 74 messages
How to read a file byte by byte? 7 messages
Standard Library 0.11.x
Is it correct to compare const strings by pointer at comptime ? 3 messages
Answered
[Solved] Can't free slice after modifying 6 messages
Answered
Why are function arguments immutable but aren't const? 3 messages
New User Answered
Segfault when looping over ArrayList with for loop 12 messages
0.11.x New User
[]u8 assignment, I don't get it 2 messages
How is @memcpy implemented? 34 messages
Standard Library Compiler Answered
What path should I specify 3 messages
Answered
Cell zig 108 messages
How to make the std.heap.LoggingAllocator log the file and line of allocations? 13 messages
How to create Object file output in build.zig 6 messages
0.13.x
updating zig code to not use @intToPtr 13 messages
passing arguments to a custom build step 2 messages
Answered
Can't use i32 when doing an if expression? 5 messages
Overwriting the copy 13 messages
Function pointer type for functions with different parameters 8 messages
How do I work with `std.atomic.Atomic` correctly? 4 messages
Standard Library 0.11.x New User Answered
Integer formatting in Zig 2 messages
Can someone explain this syntax 2 messages
New User
Most idiomatic way to have pointer to a `@embedFile` data blob? 8 messages
0.11.x New User
Printing the `target` in a `build.zig` file 4 messages
toJSON 64 messages
Answered