What are the criteria for adding `extern`s to libc functions in Zig's std lib?
Ziggit
What are the criteria for adding `extern`s to libc functions in Zig's std lib?
This is more of a “I want to ask on Ziggit before opening an issue on Codeberg and embarrassing myself”. I have been teaching myself Zig and C at the same time (largely by rewritting Makefiles into build.zig files) and after wiring up several translate-c to modules for string.h or stdio.h I noticed that most of the functions I needed were already available under std.c.* (e.g. std.c.printf). This is great because unless the project I’m working on references a third party library (like libpng or ...
0 comments
No comments yet.