Hi Dia!

I did the same thing today. Took me some time to figure it out...
My code is like this:

void func(struct myStruct* ArrayOfStruct) {
     x = ArrayOfStruct[1].Element //just es example to access Element in 
ArrayOfStruct[1]
}

Maybe this helps you. Could you send some code?

Regards
 Dominik

-------- Original-Nachricht --------
Datum: Sat, 14 Apr 2007 02:59:55 -0400
Von: "Dheya Ghazi Mustafa" <[EMAIL PROTECTED]>
An: sdcc-user@lists.sourceforge.net
Betreff: [Sdcc-user] passing pointer of struct to function

> Hi,
> I am tri\ying to pass a pointer of struct to function.
> I received the following error.
> 
> C:/plansw_006_doc/CoordinateMapper.c:59: 
> error 52: Actual Argument type different from declaration 1 from type
> 'struct piccolodatastruct generic* ' to type 'struct piccolodatastruct 
> generic*
> '
> 
> 
> any suggestions may be helpfull.
> 
> Thanks
> Dia
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to