zig-help

21196 threads · Page 387 of 424

Error while creating an array of std.os.pollfd with anonymous structs 2 messages
Is it possible to get a pointer to an optional payload? 14 messages
Block comments in zig? 10 messages
Partitioning in Zig 22 messages
Is switch on tagged union a strictly comptime switch? 40 messages
Linking dependencies 33 messages
Questions about `std.net.stream.read` 15 messages
[Code Review] Advent of Code 2021 2nd day. 3 messages
Answered
Is it UB to return a slice backed by an array? 30 messages
@cInclude - error: file not found 11 messages
Help with zig-doctest compilation 7 messages
discard const qualifier from iterator 31 messages
Am I doing something wildly incorrect? 32 messages
New User
making a self referential struct instance at comptime - is there a better way? 13 messages
Should destructors receive structs by value or reference (const or mut)? 48 messages
How to port longer build command from C Makefile to Zig build? 67 messages
create a build step that can build OR run 3 messages
exiting with an error message 5 messages
collect iterator 40 messages
Answered
Zig test 15 messages
Answered
Cross compiling asm with zig cc, but get `instruction requires: sha2` 3 messages
xml in zig 2 messages
Get output of child process 8 messages
Documentation for mcpu and march 7 messages
New User
Could you tell me if there is a better workaround with this code? Please 52 messages
New User
invalid byte sequence for encoding "UTF8": 0xf0 0x6e 0x80 0x6b 67 messages
Answered
Magical code ?optimization? 28 messages
How to get struct name? Users and not main.Users. 4 messages
tuple declarations cannot contain declarations 22 messages
Answered
How to build a c project with zig without linking to CRT 14 messages
build.zig : Glob files in a folder/path 4 messages
error: value of type [2]u32 ignored when concatenation two arrays 26 messages
Answered
array of u2 2 messages
Answered
Copy from one opaque pointer to another 6 messages
Answered
How to send ping with zig natively? 12 messages
Link libstdc++ dynamically 18 messages
Compiler
How does the std linkedlist work without an allocator? 3 messages
Answered
I want to add 3 sums in and array and if it is greater than the last 3 sum then count it then print 17 messages
Answered
[noob] speeding up a ray tracer implementation from one weekend first book 14 messages
New User Answered
Cloning 49 messages
Answered
Printing with `{}` 7 messages
New User
[SOLVED] How to print all fields of a C struct? 6 messages
Answered
beginner question 18 messages
New User
Why `inline` for loops 5 messages
warning(link): library not found for '-llibpq' 22 messages
floating point comparison 4 messages
Standard Library New User Answered
slice of non-array type '?*anyopaque' 3 messages
Answered
Zig-bootstrap problem 6 messages
How to maintain a "StringBuilder"? 12 messages
Initialize static array 28 messages
Answered