zig-help
C getchar equivalent in zig
Is there a way to "switch" over a byte like the rust `bitmatch` crate?
New User
looping over an array list of struct items, and can't recognize struct methods.
Get generic type from function
Build System
Answered
0.13.x
concurrency
Value with comptime-only type depends on runtime control flow.
Answered
Difference between writers `getStdOut().writer()` vs bufferedWriter(...).writer()`
Answered
no module named 'zig-cli' available within module root
Answered
Advice on Patterns in Zig Code
What has std#TailQueue been replaced with?
Type of range syntax
Answered
Put into `StringArrayHashMap` doesn't work
Answered
Getting non-undefined values from an array
Answered
Can I set an entire slice to have the same value `x`?
Answered
zig build: `error: HttpProxyMissingHost`
Answered
A tutorial on build.zig for medium size project
Build System
Answered
0.13.x
position independent code (possibly portable)
Function that sometimes allocates
Answered
0.13.x
translate-c with windows.h results in 2597 compileErrors
Answered
0.13.x
Code Review: Kalman Filter in OpenCL
Code critique
expectEqual on a hashmap
Parsing json with names that contain -
Answered
Embedding zig-build in my own CLI app
Build System
0.13.x
Returning a function that can error - how to write the type?
Answered
Trouble with using raylib and nanovg
Build System
0.13.x
How to create user defined annotations?
Answered
How to check if a bit is set in u8?
Answered
Unable to fine libGL
Is there a better way to deinit a tagged union?
Answered
Issues with gathering identifiers in a lexer.
error: root struct of file 'std' has no member named 'ChildProcess'
Standard Library
What is the practical use case of unions?
Answered
When parsing JSON to a Zig struct is there a way to parse the remaining fields to a separate hashmap
Standard Library
0.13.x
Clear any input from stdin
Standard Library
0.13.x
Not sure if this is being handled correctly by the compiler?
No ECHO constant for setting terminal attributes.
Answered
Format an optional string
Standard Library
0.13.x
Namespace (struct scope) shadowing rules
Answered
How do i ensure my `anytype`s can be used as addresses
Implementing a config module
Build System
0.13.x
Zig equivelant of fs.readdirSync("./")
Passing slice to thread gets corrupted
New User
0.13.x
Allocating extra bytes for metadata
std.debug.print seg faults
TODO: implement @ptrCast between slices changing the length
0.13.x
Size of slice types
0.13.x
macOS Zig Build Broke
0.14.x
Compiler
binary produced with zig c++ segfaults but binary made with clang works
Answered
Masked stores