Claude
Skills
Sign in
Back

zig-c-interop

Included with Lifetime
$97 forever

Guide for Zig and C interoperability. Use when importing C headers with @cImport, exporting Zig functions to C, mapping C types, using translate-c, or linking C libraries.

General

What this skill does


# Zig C Interop

Importing C libraries, exporting Zig to C, type mappings, and translate-c.

## When to Use This Skill

Activate when:
- Importing C headers with @cImport/@cInclude
- Exporting Zig functions for C consumption
- Mapping between Zig and C types
- Using the translate-c tool
- Linking C libraries in build.zig

For type mappings, linking patterns, and string interop examples, see `references/c-interop.md`.

Related in General