zig-help

21196 threads · Page 189 of 424

How to make this comptime concatenation of a string array work? 12 messages
0.14.x Answered
Not sure how to utilize existing C libraries 60 messages
Build System Answered 0.13.x
Error accessing stdout of RunResult 3 messages
Build System Standard Library New User
Fix expected type error. 19 messages
New User
Create function that accepts variable arguments? 125 messages
Struct resets to defaults after `return` 2 messages
Answered
Type conflict: lib.sub.type cant be casted to parent.lib.sub.type 260 messages
Can I store a tree structure (with some sort of pointers) to a file on disk using Zig? 37 messages
New User
Running zig-vscode from a local branch 5 messages
Get file extension from file (string or handle) 3 messages
Switch on types of module 28 messages
0.14.x
Building zig from source defaults to cc (clang v15) instead of using clang v18 6 messages
Get status code of child process launched with `b.addSystemCommand` 14 messages
methods on struct 5 messages
New User Answered 0.13.x
Can I generate functions? 10 messages
including functions from C++ lib with extern "C" in zig 50 messages
Answered
big float 3 messages
Answered
Ziglings 75 bonus exercise 15 messages
Compiler New User
Is there a compiler flags, switches doc? 17 messages
Compiler New User
Zig passes struct by reference instead of copying? 46 messages
Answered
Module organization questions and best practices 28 messages
New User
How to enforce naming convention? 16 messages
Compiler
How to convert a numerial type to a []const u8? 17 messages
Answered
what's the proper way to cast between int types in inline code 18 messages
Answered
Why modifying a mutable variable doesn't work here? 8 messages
Answered
How to get the offset of a slice from the beginning of the array it is a slice of? 5 messages
Answered
Is there a way to evaluate enum methods at comptime? 2 messages
Answered
Code Review: a CHIP-8 emulator I wrote to learn Zig 24 messages
New User 0.13.x
trouble initializing std.Random.DefaultPrng (stack allocation?) 24 messages
New User Answered 0.13.x
Convert C++ float casting to Zig 11 messages
New User
Iterating over a hash map 16 messages
can't seem to be able to connect to NASA's horizons system using std.http 7 messages
0.14.x Standard Library
Casting fixed-sized array to dynamically-sized array 7 messages
Answered
How to `@memset` a C struct? 101 messages
0.14.x Compiler Answered
Switch over u8, using enum 64 messages
Answered
regex help 2 messages
Heap allocation not working within function 7 messages
[]u8 from comptime string? 11 messages
Strange "error: cannot format slice without a specifier (i.e. {s} or {any})" error 5 messages
0.14.x
idiomatic way to wrap a c function that takes a callback 42 messages
Answered 0.13.x
Confusion about UTF-16 2 messages
0.14.x Standard Library New User
Format current epoch time to a human readable string 2 messages
Array or Slice? 8 messages
New User
C import fails 3 messages
Debugging JSON Parse errors in zig. 2 messages
Answered
Godot type Casting help. 5 messages
Optional usage 27 messages
Get build mode in code 2 messages
Custom test runner 3 messages
Answered
Confusion with const variable passing to non const function 8 messages