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:

  1. Functions and Scalars — build a C function, inspect its contract, and shape its Python name and arguments.
  2. Pointers, Arrays, and Strings — state the Python meaning of C pointer parameters.
  3. Outputs and Errors — return output parameters and project native status values into Python exceptions.
  4. 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.