zig-help
Interface Design Questions
Answered
Segfault when running a minimal raylib program on Windows
0.13.x
Issue Importing C Library
0.10.x
New User
struct into slice
0.13.x
Help with C calling convention args
How to iterate over a *const Ini.SectionIterator?
Answered
Wrapping bit shift
0.11.x
New User
Answered
How to debug Segmentation faults?
if (value != null) vs if (value) |_|
Answered
0.13.x
How to get `builtin.TypeId` of an array's elements when only their type is known?
Answered
0.12.0 gives undefined behaviour when storing the return value of function in a variable
Zig custom printer for structures
Zig comptime macto to create helper function
Is it possible to unwrap multiple optionals at the same time?
New User
Answered
0.13.x
Why there is SplitIterator instead of just putting every part into an array
Standard Library
Iterating SplitIterator
Standard Library
0.11.x
0.13.x
how can we print optional string values
Standard Library
0.11.x
0.13.x
Define array with a zero value filling every element??
New User
Answered
~~for loop error in docs?~~ (0.11) (or I'm just an idiot)
0.11.x
New User
Answered
How to concat two arrays comptime and discard them for runtime, keeping the resulting array?
Answered
Type usage question.
Answered
Non-regular sized integers
Any way to do a left shift without caring about overflow?
Standard Library
0.11.x
New User
error: expected type 'u32', found 'error{OutOfMemory}'
Standard Library
0.11.x
New User
Answered
How would one recreate this C code in zig ?
New User
problem with WTF-16 encoding
Answered
Cross compilation of C++ to mingw - errors with header incompatibility of wchar.h
zgui with mach-glfw + vulkan-zig
C Pointer cast?
Answered
Casting an array of usize [16]usize to *usize in C API
error: no field or member function named 'isNativeOs' in 'Build.ResolvedTarget'
0.13.x
Build a library and use that library in another sibling zig project without publishing said library?
How to make sure a struct field available comptime?
Answered
Initialize arraylist with a default value?
Answered
Best way to generate Zig code?
Compile-time PRNG (pseudo random number generator)
Compiler
New User
0.13.x
How to glob generated files in build.zig?
Standard Library
Zig build vulkan-zig + mach-glfw
Answered
Array, pointers vs slice coercing
Custom name for types returned by type functions.
Cant run zig in Clion
Answered
[SOLVED] adding online dependencies
New User
0.13.x
How can I use a header from macos frameworks?
How to identify all unused globals? fns, types, constants, etc.
This function is causing a memory leak I think but don't understand why
New User
Answered
0.13.x
Avoid “consider using const”
Answered
Trying to add icons/fonts with ImGUI, compiler error.
Beginner Here: Better way to handle memory in a dynamic programming problem?
`inline else` only known enum values, separate case for others
Answered
0.13.x
Potential compiler bug?/How could this cause undefined behavior?
0.13.x