zig-help

21196 threads · Page 285 of 424

Deserialize a JSON array of different elements 2 messages
New User
Defer to end of function? 9 messages
Answered
this is weird 2 messages
Answered
opaque example 11 messages
New User
MacroQualified functions when linking a c library 6 messages
Parsing JSON with shape known but field name varies 4 messages
Save StringHashMap to disk 8 messages
is this the most simple/best way to allocate a string literal in runtime memory? 4 messages
AutoHashMapUnmanaged incorrect alignment 2 messages
New User Answered
Errors in Zig compiler test suite 3 messages
Compiler Answered 0.13.x
Read HTTP headers on accept 37 messages
Mock `std.net.Stream` behavior? 18 messages
Answered
Confusing error from compiler 11 messages
Optimizing out branching code in consequence of partially comptime conditions 7 messages
Answered
Idiomatic way to assign value to all members of struct slice 22 messages
Check if function returned any kind of error with if statement 8 messages
build.zig cache output 6 messages
Standard Library Compiler
manipulating bits in zig 21 messages
Are there integer literals with width? 2 messages
Answered
How to allocate a struct and initialize it at the same time? 2 messages
Answered
Type error when appending to an array in a struct in an array behind a pointer 6 messages
Answered
What args function should be used? 5 messages
New User 0.13.x
How can i force zig build to re- run specific build step? 4 messages
Return Slice From Array on Stack 14 messages
New User Answered
Allocate Array With Init (Placement new) 5 messages
New User Answered
What does access of union field 'Pointer' while field 'ErrorUnion' is active mean? 2 messages
Answered
my first segfault, help needed 5 messages
Answered
What do I put for `.decls`? 9 messages
Answered
Arena deinit() possible leak? 9 messages
0.11.x
How to cast a multiple item pointer `[*]T` to a single item pointer `*T`? 5 messages
How to include c headers 9 messages
When is `@typeInfo(ErrType).ErrorSet` null 2 messages
Answered
Designing Significant-Whitespace Parser with DoD 10 messages
Printing the active struct of a union, unable to correctly set field 6 messages
Answered 0.13.x
ZLs initialization failed VSCode 3 messages
error when including mingw/include/stdio.h in c 46 messages
Can't access something in cimport.zig 8 messages
Answered
How do i Link Libc statically ? 7 messages
Steps to add new CPU architecture 5 messages
Compiler New User
Working with arrayList and structs where free leads to integer overflow 7 messages
Standard Library New User
Handling !void in a function that needs to be void return 7 messages
Generating multihashes 8 messages
Return types 4 messages
How to create and pass a Slice of Slices Directly 23 messages
Bug maybe? 49 messages
Zig Language Server VSC 5 messages
0.13.x
Allocate page of memory 2 messages
0.11.x
Relative Path to absolute Path not working? 2 messages
Return value of function is const? 39 messages
How do I compare two C strings? 29 messages
Answered