c structures and type casts in euphoria

new topic     » topic index » view thread      » older message » newer message

hello all,

i am working on a project that has the need to simulate several C `struct` s
in memory. I am already using Bernie's mixedlib.e and i find it to be quite
good for what i need. I have on problem though. I need to type cast the
pointer of one of those structures created from Bernie's mixedlib.e to another
type of structure also created through that same lib.

I am simulating the `sockaddr' and `sockaddr_in' structures from C headers
files on a linux machine. As many of you probably know, you can type cast the
`sockaddr_in' to a `sockaddr' structure that many of the socket function want
as a parameter.

Is there anyway in Euphroia to type cast a structure created in memory from
Bernie's mixedlib.e to another structures created in the same way? Any help is
greatly appreciated.


CenSe,
a member of the
ak-software
development team

http://ak-software.virtualave.net/

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu