Slashdot Mirror


C Coding Tip - Self-Manage Memory Alllocation

An anonymous reader inputs: "The C programming language defines two standard memory management functions: malloc() and free(). C programmers frequently use those functions to allocate buffers at run time to pass data between functions. In many situations, however, you cannot predetermine the actual sizes required for the buffers, which may cause several fundamental problems for constructing complex C programs. This article advocates a self-managing, abstract data buffer. It outlines a pseudo-C implementation of the abstract buffer and details the advantages of adopting this mechanism."

2 of 142 comments (clear)

  1. Re:2 words for this article.. by netsharc · · Score: 0, Offtopic

    You're just jealous he's smart and hard working enough to have made it to IBM.

    --
    What time is it/will be over there? Check with my iPhone app!
  2. SCO owns C++ (and C too?) by G3ckoG33k · · Score: 0, Offtopic

    "And C++ programming languages, we own those, have licensed them out multiple times, obviously. We have a lot of royalties coming to us from C++"

    Darl McBride, SCO

    WTF?! It's true, he said that. Read more here and here