zig-help
Return union field from function
code review, accessing a file and appending a line
getOrPutValue must be known at comptime
New User
Answered
0.13.x
Zig Callbacks
New User
Check if anytype coerces to type?
Answered
Implementing a C function
OutOfMemory when appending to ArrayList
New User
Answered
0.13.x
how do i check if a variable is undefined/null?
New User
[solved] How to create a struct with fields that mirror an enum
Answered
[solved] What data structure for an enum set of an arbitrarily long number of bits?
Answered
cannot format slice without a specifier
tests from imported modules not running?
Instrumenting emitted C code.
Why make error set more specific
Answered
ideal way to represent little endian byte array
Answered
[solved] Issue with string lists: expected [][] found *const struct{ ... }
Answered
this is causing a crash
what does 1550 signify in the nightly release "0.14.0-dev.1550+4fba7336a"?
Answered
How do I ignore backslashes in string literals for filepaths?
Answered
how do i see if an item is contained in an array?
Zig type erasure for ECS
Where to download Zig
Answered
Is it possible to pass a type array as argument?
defer always occure even with break/continue ?
Answered
0.13.x
while () loop: { } or loop: while () { }
Answered
Beginner Projects
New User
On passing parameters by reference by passing them by value
Zig interface messing values up
0.13.x
StringHashMap into ArrayList (Memory Leak)
Issue with std.mem.bytesAsSlice and @alignCast
Standard Library
0.13.x
A counterpart of @fieldParentPtr for optionals
Succinctly defining struct of slices
Answered
Emitting bitcode on bootstrapped stage2 Zig without llvm
0.14.x
Answered
how do i run a function needing a alloc at comptime?
How to iterate a nested ArrayList
New User
Answered
Trying to include a c repo for embedded: libopencm3
Build System
Compiler
Answered
Is it possible to create a system to get enum names at runtime?
How do I get the amount of characters written with GenericWriter.print()
Answered
0.13.x
How i can get the length of a file in zig?
Answered
About windows target and osdev
Build System
0.14.x
Printing box drawing characters?
New User
Standard Library
Answered
0.13.x
[solved] Calling a function from a struct as it is constructed with T{....}.theFn()
Answered
Combine slices at runtime
Standard Library
0.13.x
seg fault
Typecasting at runtime?
Standard Library
0.13.x
How to easily add line number to log?
Why `&` of a T automatically converts to *const T rather than *T? What is the right way to get a *T?
0.14.x
New User
Http url Download file.
I am a-bit confused about this.
Answered
How to retrieve environment variables at compile-time in Zig?
Answered