zig-help
Force zon to ignore package hash mismatch
How do i know if a string is written in raw bytes?
Standard Library
New User
Answered
question on modifying nested struct fields
How to return only an error from a function?
How do i return an error with a string message thats known on runtime?
New User
matrix initialization
why this is error
Deduce slice type in function argument?
New User
Is `const std_options = std.Options`? only valid int the `main`.zig file
Answered
allocator vs wasteful array
HTTP request not working
Confusing index out of bounds error with multiarraylist
Answered
Moving functions to another file leads to crashes
expected type '?Build.LazyPath', found '?[]const u8'
Answered
0.13.x
how to ensure alignment of struct elements in an array?
New User
how to update zls to nightly on vscode
Arraylist(u8) memory leak
Latest master comptime changes?
0.13.x
Atomic Builtins explantation
Compiler
Answered
0.13.x
io_uring with tls
`section will not fit in region` and similar linker errors - freestanding cortex_m3
How to initialize a struct?
New User
How to declare a function parameter as "I WILL USE THIS LATER I PROMISE COMPILER PLEASE DON'T ERROR"
New User
Check operating system at compile time for builds?
Callable type
New User
Answered
How to open `Entry`
New User
Answered
0.13.x
Pointers to packed struct fields (Info on bit aligned pointers?)
0.11.x
0.13.x
How to cast [*c] const u8 to [] const u8
@fieldParentPtr reports invalid number of elements
Answered
Why Zig or other languages do not accept any byte sequences in their string literals?
Compiler
Is there a better way to do this?
Code only being hit in debug
Answered
Function `foo` has return type `f64` - any way to cast `&foo` to have return type `anyerror!f64`?
Is a separate root file just for a test step ok?
Answered
How does returning a pointer of local struct work here
Standard Library
New User
Comptime array of unknown length?
Having issues linking with JavaScriptCore on MacOS
Answered
Can't use fixed buffer allocator on AVR MCU
New User
0.13.x
Allocate multiple object at once and freeing them one by one
conditional function declaration
Answered
How to use std.c.darwin API?
Custom Error Type alongside related struct or not when imported
Using Arrays with Build Step Options
unable to translate C expr: unexpected token '{'
0.11.x
New User
Add signed integer to unsigned one
New User
0.13.x
Zig concurrency model
`build.zig` not working, are the docs outdated?
0.11.x
New User
Slice of all possible enums
Answered
How do i load a file entirely into memory?
New User
How to omit header in HTTP request