zig-help
cross-compiling c with zig cc
Answered
Using std.sort.block()
Is it possible to store information within an error?
New User
Answered
0.13.x
How to include a `.h` file of my own not in a `build.zig` file?
Convert .zig file to .c
std.mem.trim* return const-ness
How to correctly store a buffered writer in a struct field?
Answered
Packed struct panics in debug, parses in fast or small optimizated builds?
Answered
How could I return a generic struct of a non specified type?
New User
Answered
0.13.x
How to check if defined?
0.13.x
How to run a command in terminal using zig
0.13.x
Swap bytes
Answered
Copy chunks of bytes at once
Answered
Iterate std.meta.fields and switch over union variant
Any idea why I'd get a "C import failed" message only during 'zig test' but 'zig build' works fine?
New User
Answered
0.12.x
passing as a parameter a function that can return an error
Linking to sibling dependency shared library
Build System
Answered
Best way to implement a simple double buffer
Trouble storing []const u8 inside BoundedArray of u8s
Answered
writing simple std.http.Server
Convert bytes to some type
Answered
putGetPtr in hash map
Standard Library
Answered
0.13.x
Weird build error in `build.zig` when linking the raylib C library with zig.
Build System
0.12.x
Netinet Header
New User
Answered
0.13.x
Cast [*]u8 to *struct and dereference pointer field
Answered
Pointer casting and alignment
New User
Answered
0.13.x
Translating C macros
0.14.x
New User
Answered
Giving methods to a type which is essentially just a fixed-size array
Answered
compile time generate switch statement
Answered
Function that takes a parameter of a type with an error: !foo
Get the name of directory from std.fs.Dir?
Answered
0.13.x
Build step depending on successful compilation
Build System
Answered
How to make a dent in preprocessor-heavy C projects?
New User
operation is runtime due to this operand
Answered
Getting error: file exists in multiple modules when trying to build raylib as git submodule
Build System
0.14.x
New User
Answered
What is x in git checkout release/18.x ?
comptime generate function
Get length of file?
Standard Library
string literal defaults to sentinel
Answered
zls not working with package manager
Build System
Compiler
Answered
0.13.x
How to get a std.io.Reader for a slice of bytes?
Answered
Confusing error
Build System
0.14.x
Compiler
Answered
Parsing Zon files
AOC 2023 day 3 part 1
Get number from boolean
New User
Answered
use c library with weird flags
Answered
Expected type '*process.Child', found '*const process.Child'
LLVM 19 not supported?
failing to make and use array of struct, comptime errors
referencing everything outside of test