zig-help

21196 threads · Page 389 of 424

Tokenize with delimiter intact 13 messages
New User
How can I link libraries using 'zig build-exe' 11 messages
Compiler
Compare string in C arrays 15 messages
Answered
An optional makes me crazy :) 32 messages
New User Answered
Testing a slice interface with strings 10 messages
Answered
checking if a std.fs.Dir is the root directory 3 messages
Inline unwrap? 11 messages
Answered
Is there an ArrayMap? 3 messages
Answered
Does returning a type return the same type every time? 12 messages
Answered
Safety of []const u8 to C string? 16 messages
Answered
Destructuring enum unions? 3 messages
Answered
Adding signed to unsigned 81 messages
How to initialize an std.EnumSet with initial values? 8 messages
error unable to evaluate comptime expression while using std.io.Reader.readByte() 23 messages
Standard Library
C import failed 4 messages
Zig CC and debug info 5 messages
assembly function not working 5 messages
Answered
Why do I not see a compiler error here? 9 messages
Answered
HashMap backed by a `FixedBufferAllocator` 49 messages
Removing optional from type? 9 messages
Answered
One-time initialize constants? 22 messages
Answered
when will zig programming book publish 34 messages
Specifying a --search-prefix to zig's clang? 9 messages
Can fs.File.Reader known at comptime? 7 messages
Answered
How can I receive packets without blocking the main thread? 3 messages
Compile to Wasm by default 2 messages
Answered
How to detect a type was returned from a type function? 5 messages
What is 'Context' in std.ArrayHashMap? 7 messages
Is it possible to run a custom step decided at runtime in another custom step in build.zig? 2 messages
How do I strip debug symbols from CLI? 5 messages
Compiler New User Answered
@Vector as builtin 51 messages
Answered
Can't print string 26 messages
Programmatically get all built-in (@) functions and their documentation 15 messages
JSON error location 9 messages
Is it bad practice to look for 0xaa in an array? 75 messages
Answered
Wasi symlinking not using wasi interfaces 2 messages
deinit() segmentation fault 30 messages
Answered
error.NotOpenForWriting when trying to flush a buffer 7 messages
New User
hotreload, anyone know when it'll be available? 4 messages
Answered
Are there address sanitizers for Zig? 7 messages
Answered
idk how to handle zig errors 12 messages
Which functions will call fd_prestat_get or fd_prestat_dir_name when compiled 2 messages
macos m1 - library not found for '-llibpq' 4 messages
View on an array with offset 18 messages
Enforce the location of the tests executable 19 messages
Answered
What exactly, in programming terms means error: expected type 'type', found 'c_int'. 104 messages
Function pointer type mismatch 13 messages
Answered
How to format pointer? 4 messages
Answered
Variable length arrays? 44 messages
Answered
Getting started with OpenGL 2 messages