C library interface
Factor handbook

Prev:UI developer tools
Next:Libraries


Factor can directly call C functions in native libraries. It is also possible to compile callbacks which run Factor code, and pass them to native libraries as function pointers.

The C library interface is entirely self-contained; there is no C code which one must write in order to wrap a library.

C library interface words are found in the alien vocabulary and its subvocabularies.

Warning
C does not perform runtime type checking, automatic memory management or array bounds checks. Incorrect usage of C library functions can lead to crashes, data corruption, and security exploits.

Image Loading native libraries
Image Calling C from Factor
Image Calling Factor from C
Image Passing data between Factor and C
Image Struct classes
Image Accessing C global variables
Image Calling arbitrary assembly code
Image DLL handles
Image Embedding Factor into C applications