On Tue, Mar 27, 2001 at 12:13:59PM -0800, Florin Andrei wrote:
> Se dau urmatoarele expresii C:
>
> (struct in_addr) *masq_addr
> (struct in_addr *) masq_addr
>
> Prima expresie e corecta in GCC, dar da erori in compilatoare mai
> pedantice (mipspro).
> A doua expresie e acceptata de ambele compilatoare, dar inseamna lucruri
> diferite pentru cele doua compilatoare.
>
> Intrebarea este: cum poate fi reformulata prima expresie astfel incit sa
> fie acceptata de compilatoare pedantice? (ANSI C)
Esti sigur ca vrei sa folosesti prima expresie? De ce vrei sa convertesti
un pointer la o structura?
--
Petru Paler, mailto:[EMAIL PROTECTED]
http://www.ppetru.net - ICQ: 41817235
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.