zig-help

21196 threads · Page 350 of 424

Best way to find string pattern 17 messages
Standard Library 0.13.x
Documentation for the zig command? 2 messages
New User Answered
How to convert slice of slices (list of strings) to C pointer of pointers for C interop? 11 messages
New User 0.13.x
Format print C char array as null terminated string 8 messages
0.10.x Standard Library New User Answered
Zig Language Server Latest Version not working 3 messages
Is there a better way to write this abs conditional? 6 messages
Does `zig cc` have file caching/dependency management by default? 3 messages
Compiler
Embed 2 messages
Way to ensure layout of fields in union 9 messages
Simple web server 6 messages
What is the relationship and use of the cache-dir vs global-cache-dir? 6 messages
Calling a function from a lib 21 messages
Need to create an empty log function in freestanding wasm 8 messages
zig cc seems to strip debug symbols? 3 messages
How to check if a non-exhaustive enum value is defined 3 messages
Reference to BoundedArray element? 8 messages
Standard Library
how to free a pointer which may or may not be heap allocated 7 messages
Answered
Imported package has no types (unknown) 3 messages
error: no field named 'field_type' in struct 'builtin.Type.StructField' 4 messages
How does one store an array inside a struct? 11 messages
Is it idiomatic to `@import()` a Zig file with an upward relative path? 2 messages
Generic Reader/Writer 31 messages
ziglings exercise 63 10 messages
New User
Zigmod Help 18 messages
Answered
Any tips for using raylib with zig (in particular, what bindings to use)? 17 messages
Getting SIGSEGV with big array in function 13 messages
0.13.x
For loop with range 3 messages
std.PackedIntArray.get() and std.mem.readPackedInt() access bits backwards for bit sizes less than 8 5 messages
Standard Library Answered 0.13.x
Code review (Advice) 2 messages
How to do comptime fn return type dependent on comptime argument? 14 messages
Answered
Why does the zig ecosystem seem so bare? 30 messages
zig-imgui has outdated build.zig, how can i fix it? 29 messages
Help writing to a file 16 messages
Trying to port CPP build script to Zig: "unknown type name: 'requires' " 3 messages
Is it possible to initialize an slice with a position and the length ? 3 messages
New User
Nested Container Tests Documentation 7 messages
0.10.x New User Answered 0.13.x
Type of StringHashMap 11 messages
How to take input from console in zig? 4 messages
New User Answered
Better way to iterate of command line arguments? 25 messages
Standard Library New User
How to debug build.zig? 7 messages
0.10.x New User
Why does creating a comptime linked list or tree work? How does lifetimes work in comptime? 8 messages
Answered
Why my algorithm 4x faster (it is not, bug in bench) in Zig compared to Rust? 79 messages
0.13.x
Library cross compilation targeting aarch64_32-linux fails during sub-compilation of compiler_rt 14 messages
Compiler 0.13.x
C pointer in `extern` forward declarations 62 messages
New User 0.13.x
Using `zig cc` to cross-compile from macOS, targeting MS ABI / PE/COFF image throws error at linking 11 messages
0.10.x Compiler
what's the right way to do comptime "return type inference" in zig 9 messages
What does an allocator.alloc return? 6 messages
undefined is truthy? 20 messages
Is there a way to check if an array index is empty or not? 19 messages
Answered
How to extract if caller argument is comptime known in function? 5 messages