Skip to main content
Visitor II
November 21, 2006
Question

malloc and cosmic

  • November 21, 2006
  • 4 replies
  • 1064 views
Posted on November 21, 2006 at 05:04

malloc and cosmic

    This topic has been closed for replies.

    4 replies

    jotxxAuthor
    Visitor II
    November 20, 2006
    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

    Visitor II
    November 20, 2006
    Posted on November 20, 2006 at 12:17

    Hello,

    malloc is not implemented for the ST7.

    Regards,

    Luca (Cosmic)

    jotxxAuthor
    Visitor II
    November 21, 2006
    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
    Visitor II
    November 21, 2006
    Posted on November 21, 2006 at 05:04

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

    Regards,

    Luca