zig-help

21196 threads · Page 390 of 424

How to get tag name of C enum by value? 12 messages
Answered
How to refer to implit struct of a file? 5 messages
Answered
Problem using toOwnedSlice() 13 messages
Standard Library Compiler Answered
Parsing data from strings 20 messages
Answered
downloading files using zig 29 messages
std.mem.copy and std.json.parse questions 7 messages
Answered
Idiomatic constructor name when pointer provided by caller? 7 messages
What's the best way to cast array to C pointer? 72 messages
Answered
Alignment question 31 messages
Answered
C struct field default initialization 13 messages
Answered
Should I null pointer fields on deinit? 5 messages
Answered
Opaque pointer can't type check 10 messages
Answered
Is there any way to add descriptions or "describe" an error? 7 messages
New User
Whats the point of a union? 132 messages
Answered
How does Zig do stuff like this 67 messages
running zig's compiler tests 4 messages
std.json.parse help 28 messages
weird zig env paths 8 messages
Zig master, wasm32 freestanding musl. C exports not working 50 messages
Compiler
Stdout Err Writer to []u8 9 messages
Standard Library Compiler New User
Zig master: error: freestanding targets do not have I/O configured; 2 messages
Compiler
Downloading zig using AUR package 'zig-dev-bin' fails with cryptographic message 23 messages
Is there a way to download old zig build? 9 messages
json.stringify a json.ObjectMap 3 messages
Standard Library Compiler New User
wasm, call indirect signature mismatch 65 messages
Compiler Answered
Are there guarantees about the where the tag of a tagged union is stored? 4 messages
Answered
Can packed structs be compared directly since they're backed by an int? 4 messages
Answered
lld-link: undefined symbol for Zig functions in C library? 7 messages
Answered
Deserializing JSON field named "@something" to struct 2 messages
Config file parser which supports missing fields? 3 messages
Initialization of superset structs 8 messages
is there a way for errors to bring some information? 4 messages
https with std.http.Client error.TlsCertificateNotVerified 11 messages
why does this comptime function still get called 12 messages
New User
SOLVED Docs says "Zig gives no guarantees about the order of fields" 21 messages
Answered
Combining GPA allocator lines segfaults zig run 18 messages
Answered
how are you supposed to pass a list 40 messages
Answered
std.json.stringify help 10 messages
Would this generate a unique enum for each type passed in? 6 messages
Answered
Is it allowed to have an extern function from a library that's not linked if it's unused? 3 messages
Answered
Variable reuse and defer 12 messages
How I can disable previous compile flags when using `zig c++` 43 messages
Compiler
Zig array of char (null terminated string) 7 messages
Force alignment of @embedFile data 11 messages
Answered
Trying to build a native extension for Ruby with Zig on macOS 29 messages
[SOLVED] What reader function to read exactly N bytes into a user-provided buffer or error? 12 messages
Answered
construct a va_list and pass it to a c function 12 messages
Switch less or greater 7 messages
dynamically create uninitialized array of length n 22 messages
Answered
cimport for extern? 5 messages