C type specifiers
Factor handbook » C library interface » Passing data between Factor and C

Next:Passing pointers to C functions


C types are identified by special words. Type names occur as parameters to the alien-invoke, alien-indirect and alien-callback words.

Defining new C types:
Image
STRUCT:

Image
UNION-STRUCT:

Image
CALLBACK:

Image
TYPEDEF:


Getting the c-type of a class:
Image
lookup-c-type ( name -- c-type )


Related articles
Image Primitive C types
Image Pointer and array types
Image Word name clashes with C types
Image Struct and union types