zig-help

21196 threads · Page 308 of 424

automatically pad packed struct? 26 messages
Using std.StringHashMap in function 12 messages
Standard Library New User
default install prefix 9 messages
VFTable vs tagged union 3 messages
New User 0.13.x
Generic function that returns same type when used with different parameters 3 messages
Answered
What are the reasons to use an owned slice over an ArrayList? 14 messages
Answered
IP to integer or cross platform `inet_aton` 6 messages
avoiding trace trap with C function expecting `[*c]?*anyopaque` 7 messages
Answered
using LoggingAllocator 2 messages
Answered
Is it possible to determine if a string is literal or if it has to be freed? 48 messages
ANSI C exercises in zig 14 messages
Saving to kv pairs 20 messages
Comptime Map 7 messages
New User 0.13.x
comparison with undefined 257 messages
Increase capacity of a std.ArrayList 19 messages
Answered
Converting ipaddress to u32 27 messages
Function pointer to function taking std.io.Writer 9 messages
troubles with making my own programming language 48 messages
local library with build.zig 3 messages
Zig WASM running out of memory after repeated use 52 messages
What does comptime if do in this case 10 messages
Answered
What is the meaning of `.{}`? 5 messages
How does AstGen's string_table work? 37 messages
Standard Library Answered
How to construct a aligned slice literal 8 messages
Best way to get the union tag given a payload type? 8 messages
JSON parsing array with different types 16 messages
Standard Library 0.13.x
Trying to set external library name and name for a WASM host function 2 messages
How can make a slice of `[]u8` into a `Reader`? 3 messages
Cross-Compiling From Windows 24 messages
Answered
linker error when building from source 10 messages
How to use `random()`? 34 messages
Comptime reflection for extern structs and other composite types 10 messages
Answered
Build fail "error code 5" 2 messages
Build system question 23 messages
trying to implement a simple event emitter, too many weird errors 17 messages
Work on a project and on its dependency(-ies) at the same time 12 messages
0.11.x 0.13.x
Sending structs via sockets with zig 58 messages
How to read/write PNG images 21 messages
How to add C source files to zig build? 30 messages
Import code in sibling directories 53 messages
Compiler New User 0.13.x
function return type switch 11 messages
__uuidof zig equivalent 6 messages
error: expected type 'type', found 'comptime_int' 5 messages
Answered
Print out wrong unicode? 16 messages
Stuck experimenting with a function that converts ints to strings without allocation 81 messages
Answered
Confused about how to properly use the build system 18 messages
Answered 0.13.x
De-reference C function pointer 17 messages
Trying to build Lua (Luau) as a lib 5 messages
close enough OO 15 messages
Answered
Help finding memory leak 4 messages
Answered