C User Guide¶
PRIK builds C functions as importable Python extensions. Start from C source
when its declarations already describe the Python API. Use an editable
semantic .pyi contract when a pointer represents an array, output, string,
or another Python-facing value that C syntax cannot identify on its own.
Follow the guide in this order:
- Functions and Scalars — build a C function, inspect its contract, and shape its Python name and arguments.
- Pointers, Arrays, and Strings — state the Python meaning of C pointer parameters.
- Outputs and Errors — return output parameters and project native status values into Python exceptions.
- Symbols, Headers, and Dependencies — wrap overload sets, broad headers, and linked libraries.
For the exact supported surface and current boundaries, see C Support. For complete library examples, see the libm and TA-Lib guides.
Start with Functions and Scalars.