Re: c structures and type casts in euphoria

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

On Fri, 26 May 2000 02:09:23 +0400, CenSe <cense at MAIL.RU> wrote:

>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
      I do not understand what you mean by casting a structure ?

Bernie

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

Search



Quick Links

User menu

Not signed in.

Misc Menu