[GEN] multiple pointers
Hey all,
i asked a similar question earlier but no one seemed to respond so here is my
second attempt at help.
how can euphoria handle multiple indirection? how can i get the value at
the end of the pointer chain? in my case the the variable is a
// in C
char **list;
i dont know all that much about multiple indirection in C/C++ but i have read
up on the subject just now and still really dont fully understand it. i know
that this variable is kind of like an array of pointers to char. but how do
get to those "values" not the addresses?
in euphoria i have
-- in Eu
atom list
and this is equivalent to the above statement in C. i tried to do this to get
the value but it Seg Faulted.
atom list, ptr, value
ptr = peek( list ) -- Seg Fault happens here
value = peek( { ptr, sizeof( ptr ) } ) -- sizeof from mixedlib.e by Bernie
Is there another way to do this that is safe and does not seg fault? can
euphoria handle something of this case? it must, i just probably dont know
jack.
thanks to anyone who can help in *any* way.
--
evil, corruption and bad taste
^cense
|
Not Categorized, Please Help
|
|