memory>struct ( ptr class -- struct )
Factor handbook > C library interface > Struct classes > Creating instances of structs

Prev:malloc-struct ( class -- struct )
Next:(struct) ( class -- struct )


Vocabulary
classes.struct

Inputs and outputs
ptra c-ptr
classa class
structa struct


Word description
Constructs a new struct of the specified class at the memory location referenced by ptr. The referenced memory is unchanged.

See also
<struct>, <struct-boa>, malloc-struct

Definition