zig-help
error: parameter of type *database.Database() must be declared comptime.
std.mem Documentation
Run command in terminal with timeout
Allocation size and free size have a difference of 1. Can't figure out why.
Answered
Unable to use std.mem.len on []const u8.
Answered
segfault w/ `std.mem.writeInt`
Answered
I'm not able to login to ziggit.dev with discord. Maybe the client secrets are wrong.
How to correctly type a function to accept a union
New User
Answered
How to verify if a Type has a function has correct name, param types, and return type?
Answered
Run multiple build steps at once?
How to specify Zig Build prefix within build script
0.11.x
Return JSON-parsed value without Parsed(T) Wrapper
Answered
0.13.x
how to convert a struct to string in zig?
Answered
How to import ffmpeg from Andrew's fork?
Answered
ZLS not working with vulkan-zig
0.11.x
New User
Getting compiler to expect all tagged union fields in a struct to be the same type
New User
Answered
0.13.x
how do i format rgb into hex color
Standard Library
Compiler
New User
@sizeOf(T) is less than @sizeOf(T.FieldType)
Compiler
Giving zig fmt hints
New User
Answered
Unable to translate C expression when using SDL library
0.11.x
error: unable to format function body type, use '*const fn () i32' for a function pointer type
New User
Answered
0.13.x
Default initialize a struct without assignment
How to convert string to utf16 (for win32)
Compiler
0.11.x
New User
Answered
C++ class interop
Answered
why does C and zig produce such different result for a simple square function
std.os.setsockopt
Answered
std.mem.zeroes(array) inside loops
New User
0.11.x
Answered
0.13.x
my wasm project used to work but not anymore?
Answered
more memory related stuff
allocator
Segfault in build.zig when adding module
Compiler
Answered
0.13.x
What's the easiest way of obtaining scalar - vector multiplication in Zig?
New User
Answered
How to get install path in build.zig?
0.11.x
Answered
bufPrint array as sequence, not as pointer.
how to create true random number?
Custom struct don't allow undefined?
Answered
addSystemCommand file not found
Answered
error: expected type '[4]u64', found '[]u64'
Anytype vs. Type in Generics.
New User
Answered
Use custom compile arguments as comptime variables
Casting u8 slice elements to other types
New User
Answered
0.13.x
net.Stream timeouts
Answered
Zig Language Extras Visual Studio Code extension bug replication request regarding the debug command
0.10.x
New User
Pass allocator at compile time
Is it possible to use the embedded testing framework of zig for testing C code ? if so how ?
New User
Is there a way to cast u8 to i8 in Zig?
Answered
0.13.x
Idomatic way of handling errors in Zig.
New User
Answered
Can't set a u16 unicode string
Answered
Idiomatic way to use a RNG (bonus: that is not a struct member)
Answered
0.13.x
access of union field 'field1' while field 'field1' is active