zig-help

21196 threads · Page 289 of 424

How to create array of unknown size 44 messages
Answered
How to create a comptime upper case string? 8 messages
Simplest way to convert null-terminated `[256]u8` to `[]const u8` of correct length? 20 messages
Answered 0.13.x
Getting different value when accessing pointer inside while loop 4 messages
Using enums as array index? 6 messages
Answered 0.13.x
Significant execution time differences between Zig and Rust [Advent of Code 2023 Spoiler] 16 messages
0.13.x New User Answered
Slice-based dequeue in the standard library? 4 messages
New User Standard Library Answered 0.13.x
Collect stdout and stderr output of a ChildProcess 7 messages
Zig resources for learning? 7 messages
New User
How would I go about converting a `c_int` to an `f32` 11 messages
Arena Allocator reset is allocating memory 14 messages
Exported tuple is missing from object exported symbols? 13 messages
0.11.x Answered 0.13.x
Read Until '\r', '\n', or '\r\n' 9 messages
How to print a number in binary format left padded with zeros? 2 messages
How would I go about returning a possibly null value as a normal value 3 messages
New User
Getting `error: comptime call of extern function` when calling `c.SDL_Init(c.SDL_INIT_VIDEO)` 7 messages
New User
comptime of arrays and structs 6 messages
0.11.x New User
Is there a way to match an enum to a string or vice versa? 5 messages
error: expected type '*hash_map.HashMap(i32,types.Operation,hash_map.AutoConte 18 messages
File locked after process interruption 24 messages
Answered
open binary file and editing it ? 8 messages
[][]const u8 to [*c][*c]u8 141 messages
Answered
Import of file outside package dir with `zig test` 34 messages
(Day 3 Spoiler) Not sure where I have a memory leak and I'm struggling to identify it 17 messages
Reading file getting stuck 13 messages
Tuple return type and parameter type 125 messages
Importing a library 39 messages
Handling errors 29 messages
Accessing data loaded from a file globally 2 messages
New User Standard Library Answered 0.13.x
Correct return type for OutOfMemory allocation error 4 messages
0.11.x New User
What am I doing wrong when Windows system programming? 8 messages
Find possible win32 error codes like in stdlib? 35 messages
`zig test --test-filter` match exact 2 messages
Answered
Error type on int constant? 8 messages
0.11.x Compiler
generic function poisoning drawbacks 3 messages
Answered 0.13.x
Linux kernel build error: zig: error: invalid argument '-fomit-frame-pointer' not allowed with '-pg' 3 messages
streamUntilDelimiter vs readUntilDelimiter get bytes read count 11 messages
Answered
Format using tabs? 18 messages
@truncate between signs with generics 30 messages
Answered
Enums: Rust & Zig 11 messages
Unused local constant, clearly being used 2 messages
Compiling zig to mac 2 messages
write and read on file line by line in zig 50 messages
How do anonymous struct functions get stored? 3 messages
Read a file into a std.ArrayList(std.ArrayList(u8)) 21 messages
Trace/breakpoint trap (core dumped) 6 messages
0.11.x New User
How to write a function which returns in an if statement? 13 messages
Answered
Strange slice behavior 34 messages
0.13.x
Unable to use field off C struct, error: does not support field access 20 messages
New User Answered 0.13.x
patch build.zig downloaded from .zon before using as dependency. 4 messages
Standard Library Compiler 0.13.x