I can not understand the meaning of this cast
: the function will execute and return a type type_t
, which is a typedef
to void*
.
Then a cast
is made to header_t*
, which is a struct
, but I can not understand how this cast
occurs. When I make a cast
like this, the return value of the function becomes a type header_t*
.
How does cast
of values for abstract data type work?
header_t *orig_hole_header = (header_t *)lookup_ordered_array(iterator, heap->index);
u32int orig_hole_pos = (u32int)orig_hole_header;