Frank Heckenbach wrote:
... snip ...
If those library routines already exist and are written in C, then sure. And often it may make sense to write small C wrappers indeed -- e.g., I don't know what "CComplex" is -- C has no built-in complex type AFAIK, unlike Pascal, so it may be a user-defined type, and a conversion wrapper may be reasonable. For other types (e.g. `int' -> `CInteger') direct Pascal access to the library routines may be reasonable.
As of C99 C has a complex type, and can operate on them directly.