Part 17. Interfacing with C

Zig works unusually well with C because it treats C as a first-class part of systems programming.

10 items

Section Title
1 Why Zig Works Well with C
2 @cImport
3 Calling C Functions
4 Using C Structs
5 Linking C Libraries
6 Building Mixed Zig and C Projects
7 Exporting Zig to C
8 ABI Compatibility
9 Working with Headers
10 Wrapping Existing Libraries