zig-help

21196 threads · Page 401 of 424

Custom build step which generates a test file and then runs it 7 messages
Standard Library Answered
is there a way to tell zig to print using 'normal' floating point style by default 11 messages
how to get a debug build of zig that's capable of compiling anything? 37 messages
Acceptable string format for stringified JSON 11 messages
Standard Library
Cleanest way to get a string from enum value? 2 messages
Unexpected size for packed struct 3 messages
Compiler
zls -- `Failed to await zig ast-check process error.AccessDenied`, anyone ever seen this? 8 messages
Getting empty build error 5 messages
recursive formatting 3 messages
Standard Library
how do I use `emit_h` of zig build? 2 messages
New User
Struct whose field must point to another field 18 messages
Is there any concept of `private functions` in zig? 7 messages
Enabling tracy 4 messages
How to store fn pointer in extern struct? 12 messages
New User
Static Local Variables lifetime 23 messages
New User
Would nested arena allocators work? 18 messages
Why is this assignment invalid? 4 messages
How does comptime work 18 messages
Concat-ing 2 slices without allocating 52 messages
Converting C code to Zig (pointer confusion) 19 messages
New User
threadlocal variable address 12 messages
It 's possible to do pointer arithmetic on many-item pointers... why can we not compare two ?? 26 messages
Create a slice from a pointer 3 messages
New User
when I use optionsStep.addOption 3 messages
`std.fs.renameAbsolute` wrongly thinks path is a directory (`error.IsDir`) 3 messages
equivalent of system() in c 2 messages
Misc questions zig AOC2022 24 messages
stage2 struct depends on itself 7 messages
how do you reverse a string? 37 messages
Answered
Multiplying u8 integers into a u32 integer causes a panic. Is this normal? 5 messages
Dirty flags 11 messages
Need help inverting an array 20 messages
Using missing os functions (eg setsid) 9 messages
Getting the type of a declaration from [at]typeInfo 8 messages
Getting the unqualified typeName of `T` 17 messages
use_stage1 removed from build.LibExeObjStep? 4 messages
error lld-link __stack_chk_fail was replaced (when linking to a prebuilt C library) 3 messages
New User
zig says pointer type is a non-pointer type 3 messages
stack overflow 6 messages
Compiler New User
debug performance 14 messages
Compiler New User
Questions about fixed buffer allocator 10 messages
Confusing behaviour with allocators and WebAssembly 5 messages
New User
Is this correct? 6 messages
modifying items inside ArrayList 2 messages
std.heap.Allocator not marked pub 9 messages
Compound literal equivalent? 5 messages
Weird calls to alloca 13 messages
Should errors be defined? 3 messages
What is the equivalent of Go's `map[string]interface` 29 messages
Convert a `c_uint` to `usize` 9 messages