Hi Roberto, I just solved the problem. malloc works fine, but doesn´t initialize the memory with zeroes.This was the problem. Now I changed my program and it works.
Thanks for your answer Matthias ----- Original Message ----- From: "Roberto G. Berner" <booleangene...@ciudad.com.ar> To: <mspgcc-users@lists.sourceforge.net> Sent: Wednesday, January 29, 2003 2:50 PM Subject: RE: [Mspgcc-users] no calloc? > Hi Matthias, > > Could you please be a little bit more specific about non working malloc() > function ? > What is going wrong with the code ... it seems to be OK ... > > Kind regards. > > Roberto G. Berner > booleangene...@ciudad.com.ar > ven...@increible.homelinux.com > 4308 3500 tel > 4308 3700 fax > 15 5620 6596 cel > > > ----- Original Message ----- > From: Matthias Schmidt <schm...@corscience.de> > To: <mspgcc-users@lists.sourceforge.net> > Sent: Wednesday, January 29, 2003 10:05 AM > Subject: [Mspgcc-users] no calloc? > > > > Hi, > > I´m trying to compile a IAR Project with msp430-gcc, but there is no > calloc > > funktion. I have to allocate memory for a struct and malloc did´t work. I > > tried something like this: > > > > typedef struct something { > > ... > > } SOMETHING; > > > > ... > > > > m = (SOMETHING*) malloc(sizeof(SOMETHING)) ; > > > > but it didn´t work. So does anybody know how to replace calloc with malloc > > or something else? > > > > Thanks, > > > > Matthias > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Mspgcc-users mailing list > > Mspgcc-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users >