zig-help
Yet another post about building Zig.
Answered
Default value of &.{} when reifying a type with slice field errors about well-defined layout
Answered
string to comptime_int ?
Building an array at comptime
Answered
simple mmap on mac
Answered
Loop through multiple lists like python's zip?
Well-formed for comptime deference?
Compiler
0.13.x
Using most significant bit of a pointer as flag
Invalid builtin function @intToPtr, @enumToInt
Compiler
Answered
0.13.x
atoi or itoa
Zig app self update
Integer part of floating point value out of bounds
c library: call to undeclared function problem
reallocate struct member
Using zig cc in CMake for cross-compilation
zig fmt skip comment
Answered
Accessing include path of ConfigHeader step during build
What is the difference between &ref of type REF and @ptrCast([*]const REF, &ref)?
extern struct bitfields?
Using Windows API without const std = @import("std"); const w = std.os.windows;
properly deinit std.StringHashMap
Standard Library
Answered
0.13.x
Converting from allocPrint() slice to c_string different from comptime []const u8
New User
Answered
0.13.x
streamUntilDelimiter does not work with FixedBufferStream
Standard Library
0.13.x
c pointer
Answered
json parsing with arbitrary keys
Getting from [*]const u8 + len to []const u8
Functions returning extern structs and using std.mem.zeroes segfault compiler
Standard Library
Compiler
Answered
0.13.x
String as std.io.writer
Parsing error
Answered
getting pointer of some type from []u8
Answered
Is it normal to have 3+ minute build times with only sdl on release mode?
anonymous struct literal with a function
Error trying to pass strings to a function
New User
Answered
What are the dots `.`
Segmentation fault while using shared library
0.10.x
New User
How can I add target at build.zig
How can I reinterpret a `[]u8` as a `[]T` when T has a different alignment than u8?
comptime_int depends on runtime control flow: switch within while loop
Answered
What types of errors are available, and is it possible to create custom errors?
Answered
New User
0.13.x
Is there any plans for an official package manager?
New User
0.13.x
Vector(4, f32) from [*]f32
use range inside if condition
Netlink socket problem
Standard Library
New User
0.13.x
Creating a public module that depends on C code
-mword-relocations support in Zig
dupe out of std.ArrayList? Or shrink?
Build.addSharedLibrary()/exe.linkLibrary() vs exe/addLibraryPath/exe.linkSystemLibraryName()
New User
Compiler
Answered
0.13.x
Is "comptime" necessary here?
Linking a shared library
Compiler
Answered
0.13.x
return `*` vs `const *` depending on the argument's const-ness