zig-help

21196 threads · Page 420 of 424

ZLS failed to build 23 messages
OS Dev barebones in Zig 33 messages
New User
any helper function in std to append terminator into string 2 messages
if statement containing only comptime variables ... 39 messages
accept client in a for loop 12 messages
file.write() crashes with error NotOpenForWriting 10 messages
How would you rewrite this in zig? 7 messages
New User
How do I call memmove? 7 messages
Any way to determine (inferred) ErrorSet in error handling function? 7 messages
New User
How can I run a Linux shell command in a function and return the output? 19 messages
New User
Check if a file is empty? 4 messages
Is there a way to make `std.json.stringify` encapsulate the resulting json object in `[ ]`? 18 messages
What's the best way to create an `[*c]?*anyopaque` ? 19 messages
is there a `std.fs.appendFile` or similar? 2 messages
Standard Library
Setjmp, longjmp 72 messages
linking to several libraries? 13 messages
Why is this const? 55 messages
(Array)HashMap overview 7 messages
Standard Library
How to store values in an array and then return the content of the array in a function. 33 messages
New User
Stage 2 compiler fails to compile with exit code 11? 15 messages
Stack Traces on Windows not showing 3 messages
Compiler
Compiler error with arrays in a generic type 10 messages
Compiler New User
c string arrays 23 messages
Setting a comptime value in a struct 10 messages
How can I make a struct field const 52 messages
build test binary for another platform 13 messages
typeInfo segfault with reified packed struct 57 messages
Compiler
Can't build Zig on macOS (M1 Mac) 17 messages
Any idea how to best detect if type is a string literal? 34 messages
Run code after build finished 27 messages
Standard Library Compiler
read file 6 messages
Standard Library
setjmp & longjmp 20 messages
What is radix in the parseInt function arguments? 4 messages
execute result of `zig build run` with sudo or doas 9 messages
Does zig support emitting bitcode? 6 messages
is there an endian-aware `std.mem.bytesToValue` that doesnt assume native? 7 messages
How to set build_option from build Step 8 messages
Constructing a value of type `void`? 56 messages
How do interact with this C pattern (null pointer passing)? 21 messages
Easiest way to get a framebuffer in Zig and software-render it? 8 messages
What was the GitHub issue for this? 6 messages
Compiler
how to compile two executables in separate build steps? 4 messages
Is it possible to use arch-specific SIMD intrinsics directly from Zig? 10 messages
Build zig error on MacOSX 15 messages
Crash on latest Zig build 6 messages
default allocator? 6 messages
import types from other files 2 messages
comptime vars with asm? 8 messages
Idiomatic method to reference struct as a parent? 95 messages
Standard Library
Something to do with environment variables 4 messages