cancel
Showing results for 
Search instead for 
Did you mean: 

malloc and cosmic

jotxx
Associate II
Posted on November 21, 2006 at 05:04

malloc and cosmic

4 REPLIES 4
jotxx
Associate II
Posted on November 20, 2006 at 09:15

Hello

How can i use malloc() function in ST7 cosmic?

Help file says that i have to include stdlib.h file but stdlib.h doesn't contain malloc() declaration

luca239955_st
Associate III
Posted on November 20, 2006 at 12:17

Hello,

malloc is not implemented for the ST7.

Regards,

Luca (Cosmic)

jotxx
Associate II
Posted on November 21, 2006 at 04:32

Page 16 of ST7 MicroController Training Part 9-Cosmic Software-20030Ppt says:

C libraries: libm contains math routines libisl contains C standard modules (strln, strcmp, malloc....

Clib.hlp file in my cosmic directory says that malloc exist.

What's going on then??

________________

Attachments :

ST7_MicroController_Training_Part_9-Cosmic_Software-20030115.Ppt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0Bg&d=%2Fa%2F0X0000000bVa%2FY6zlOXUAHmIwtPnyS5voF2BMWTcMgy2CJoZ57PdDEEQ&asPdf=false
luca239955_st
Associate III
Posted on November 21, 2006 at 05:04

that's an error in the documentation. Sorry about that, we will fix it.

Regards,

Luca