zig-help

21196 threads · Page 259 of 424

convert *c_char to []const u8 and vice verse 38 messages
Best patterns for calling javascript from wasm? 43 messages
Answered
Zig advise from cross language experience 72 messages
type traits in zig? 5 messages
0.13.x
Please help with the placement of the include/zeb.h library in my repository 70 messages
New User Answered
MMAP create private mapping 3 messages
Map struct field to functions 40 messages
0.11.x New User
comparing two expressions 3 messages
Answered
Is there a way to check the architecture at compile time? 3 messages
Compiler New User Answered
Basic module questions 11 messages
defer to struct destruction 4 messages
Reading a string using the reader interface 2 messages
Answered
Convert []const u8 to []u8 and vice verse 26 messages
Freeing raw pointer allocated by Zig allocator 4 messages
open source projects for learning using C library with Zig 2 messages
Answered
How to make tcp server? 2 messages
Standard Library Answered 0.13.x
Convert [*c]u8 to []const u8 and vice verse 56 messages
Networking newb problems (how to accept clients in a nonblocking way) 3 messages
Standard Library 0.11.x
How to pass LDflags to zig build run 9 messages
How to tell if you compiled your program in debug or release mode? 4 messages
How to properly manage multiple allocation strategies in a struct? 12 messages
New User
Has anyone been able to target msvc abi from Linux 16 messages
Invalid byte # 4 messages
New User 0.13.x
add a c-dependency to a module so that things that depend on the module don't need to addCSourceFile 23 messages
Trying to parse csv with boho/zig-csv: error: expected type *T, found *const T 9 messages
Formatting numbers with commas 7 messages
Standard Library 0.13.x
How to debug (or get better stack traces) on wasm 21 messages
Answered
Get the possible key(s) from a value in a stringHashmap 16 messages
What is the right way to use std.io.AnyWriter? 7 messages
New User Answered
Stop addSharedLibrary from adding lib prefix to the library 13 messages
Answered
Concatenate 2 **comptime-unknown** strings 11 messages
get types in anytype 8 messages
New User Answered 0.13.x
is there a function for string sanitization? 6 messages
Answered
Why does my second collectOutput not collect anything? 4 messages
Standard Library New User
arena allocator, allocation error handling 18 messages
Autogenerate declaration of struct fields (metaprogramming) 91 messages
Compiler 0.11.x New User Answered
Can the capture of a while loop optional be marked var? 12 messages
Trying to link to ZGL 6 messages
0.11.x New User
Only defining a field for a struct in tests only 3 messages
How to make this chunk of code DRY? 14 messages
How would I use this assembly code in my project? 4 messages
Add option to build module 4 messages
Answered
Dynamic errors from an enum 5 messages
Read from a tcp socket without blocking until any bytes are available 25 messages
Standard Library
zig-gamedev: cannot clear window to solid color in minimal example 2 messages
Answered
How to use native c libraries? 13 messages
Is there a better way to express this memory layout? 5 messages
Answered 0.13.x
refAllDeclsRecursive with an alias of std.ArrayList([]const u8) 22 messages
Read file in build.zig 3 messages
pub everything 2 messages
0.11.x Answered