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
ptra c-ptr
classa class


Outputs
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