zig-help

21196 threads · Page 417 of 424

Defining a structs function body later, while capturing own instance 6 messages
ZLS completion for Zig packages 13 messages
How to (perhaps) do some action in each file in a dir? 23 messages
Standard Library
What's the correct div builitn i should use to mimic C's behavior? 3 messages
Allocate entire pages with page allocator 132 messages
Standard Library
Bring Slice From Heap to Stack 17 messages
how to hijack the source code in a build step? 57 messages
Calling z from c, right way to link libcompiler_rt.a 5 messages
loop over c string 19 messages
What's the right zig type for interop with C bitmasks ? 25 messages
error expected type 'u3', found 'u8' 9 messages
returning errors from main? 49 messages
zig build - copy file 2 messages
llvm-rc? or.. how to add Icons to windows executables? 6 messages
Answered
Zig in education 21 messages
comptime call of external function? 32 messages
Switch on zig version within build.zig to deal with breaking changes in std.build.Builder 8 messages
New User
C import failed. How to debug? 26 messages
Builtin to determine whether a type is an integer type? 110 messages
Recommended way to handle global initialization or deinitialization routines? 9 messages
Is casting function pointers to const anyopaque pointers allowed? 15 messages
Define an array of structs that is not only available at comptime but without using a block 9 messages
New User
Analog to `catch` but for success 3 messages
WebAssembly stack 34 messages
Progress on next zig release? 11 messages
Array definition with comptime known length 34 messages
Slicing vector for another vector? 10 messages
Segfault when running `zig build-exe` 5 messages
termios module not working 8 messages
Pointer to array with strings 14 messages
expected type '[]const u8', found 'TypeOf(null)' 26 messages
Compiler
Adding unsigned integer with signed integer of the same size 106 messages
Declare extern fn and assign to GetProcAddress() result 29 messages
Destructive realloc 17 messages
Standard Library
Casting a floating point number to or from a byte array 34 messages
can i cast an enum directly to u32 without having to intCast? 51 messages
Switch on strings? 6 messages
Volatile array pointer not volatile? 59 messages
How to print which is the 'native' target? 4 messages
Compiler New User
async∶ call suspend inside other func. 29 messages
Is it legal to move a GeneralPurposeAllocator? 57 messages
vectored io broken? 2 messages
Clang command doesn't work with `zig cc` 41 messages
LLVM emit Zig to C 33 messages
Compiler
How to tell build.zig to use a linker script and target a different architecture 3 messages
Standard Library New User
Length of anyopaque slice 13 messages
Struct of strings in idiomatic Zig? 35 messages
New User
lld-link error undefined symbol in6addr_any 18 messages
New User
Open memory as file 2 messages
New User Standard Library
json serialize shared fields 11 messages