zig-help

21196 threads · Page 239 of 424

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