zig-help

21196 threads · Page 372 of 424

How to Compile C code Transpiled from C 7 messages
Compiler
gcc versus translate-c of c to zig then zig build-exe speed on M1 Mac 7 messages
help export c function variable 43 messages
New User
How do i cast a tuple passed as anytype to an array? 8 messages
Answered
what replaced addPackagePath? 4 messages
AnyInt type 5 messages
Answered
What leaked my memory 3 messages
addPackage not found! 115 messages
0.13.x
Human readable assembly 0.10.1 66 messages
Small Questions 26 messages
Answered
How do I initialize an array of string literals? 8 messages
Answered
Is there a way to cast a []u8 to a [][4]u8? 2 messages
Answered
How to Add two optional variables 16 messages
Make Zig Language in VSCode use older ZLS 7 messages
How to prevent "Illegal instruction" 6 messages
Answered
windows, vscode|remedybg: inspect global variable not working 7 messages
Why doesn't break require a label in nested loops? 9 messages
New User
Linking to another module 28 messages
Brainstorming a GUI lib: dispatching input events 10 messages
Cannot initialize variable to ternary expression? 19 messages
Answered
Code instrumentation for profiling 6 messages
Compiler New User Answered
re-enable test output 0.10 -> 0.11 3 messages
New User
Alternative entry point than fn main() 7 messages
defer freeing of keys in nested block? 17 messages
Answered
Spilling a struct into registers 8 messages
@import all files in a folder 5 messages
Answered
Running defer statements after calling os.exit() 38 messages
How do I get a pointer to a tagged union from a pointer to one of its variants? 2 messages
Answered
what does inline mean in zig 41 messages
*const []const u8 not coercable to *[2048]u8? 43 messages
bitwise or on mismatching types 11 messages
Answered
How integrated is testing in the zig ecosystem? 39 messages
Why do I have to put `comptime` in front of the call of a function that take all comptime params? 46 messages
Is there a way to import directly into the current namespace? 10 messages
Answered
Initialize list of optionals to null? 3 messages
Answered
how to append string into a comptime array of strings? 21 messages
Answered
Custom formatting only for certain fmt string 58 messages
Shared object initialization 3 messages
Test build step does nothing 2 messages
Answered
Converting errno codes to Zig errors 2 messages
Answered
Creating a bitfield from an enum 8 messages
Standard Library New User Answered
Coping with unused variables? 30 messages
New User
comptime help 13 messages
Understanding immutable function arguments 15 messages
New User
how to find out from which line I get into "errdefer"? 6 messages
How can I install emitted object files with Zig? 6 messages
Need help with cross compilation on `MacOS (M1/M2)` to `MUSL (Alpine)` 59 messages
Add cpp header 35 messages
Compiler New User
Test stalling using std.io.getStdOut 2 messages
Standard Library
What’s the best way to play sound with zig? 13 messages
Answered