C interoperability
ASPL 0.7.0 · Current release
Native puts, sqrt, fixed signatures and copied Buffer examples with exact source downloads.
On this page
Programs and sources
Native only, published ASPL 0.7.0. These programs require x86-64 Linux with glibc, not the online playground. Each page lists shared libraries, supplied Arabic/English variants, commands and exact expected outcomes before you run it. No input lines, source modules or data assets are required.
Install the native toolchain · Follow the C guide · Look up the foreign API.
Foreign adapter profiles
- puts: a call-scoped C-string loan,
libc.so.6, outputمرحبا\n, status0. - double: sqrt with the exact double profile,
libm.so.6, no output, status0.
Exact fixed signatures
abs and strlen use libc.so.6, an exact i32 signature and a copied UTF-8 string loan. Success prints nothing and exits with 0.
Copied Buffer bytes
Buffer and memset use core::c and libc.so.6 to test copied byte storage, shared aliases, output spans, oversized extraction and repeated close. Success prints nothing and exits with 0.
Publication and managed boundaries
The public production tool supplies the examples above. Contributor-only managed-callback fixtures are excluded. Ordinary unsafe foreign declarations do not gain managed privileges. Use the separate HTTP and Raylib collections for their reviewed supplied APIs.
The original C guide source (opens in a new tab) retains its earlier 0.5.0 instructions and contributor context. Follow the current guide linked above for published 0.7.0.