Menu

#2 malloc.h header file is deprecated--remove from examples

open
nobody
None
5
2007-05-02
2007-05-02
No

malloc.h is no longer required for modern *nix.

stdlib.h by itself is sufficient

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I know, however, I think it does not hurt, if it is included. It makes
    examples working on old and standard non conforming installations.

    With best regards,

    Marian

     
  • Andrew P. Lentvorski, Jr.

    Logged In: YES
    user_id=752864
    Originator: YES

    Um, actually, it does.

    Modern systems no longer have malloc.h (it has been deprecated since 1999?). Therefore, compilation bombs with a header not found error.

     
  • Fei

    Fei - 2010-11-17

    it seems there is a problem with double linked list: SGLIB_DL_LIST_ADD can not inert the element one by one in order I gave them, the first element is at the tail, if I use SGLIB_DL_LIST_ADD_AFTER the first element I added is right, but the rest are in wrong order.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.