Opaque Pointer leads to Segfault
Ziggit
Opaque Pointer leads to Segfault
There is a library (that comes with a header.h) that runs fine with the c example, but segfaults in zig. The C Code: #include <string.h> #include "irohnet.h" int main() { Endpoint_t * ep = endpoint_default(); endpoint_free(ep); // does not segfault return 0; } the zig code (snippet): const std = @import("std"); const iroh = @import("iroh"); const dprint = std.debug.print; const DISCOVERY_CONFIG_ALL: c_int = 3; pub fn main(init: std.process.Init) !void { const path = "D:\\Code\\Z...
0 comments
No comments yet.