Thread: Caller/Callee Allocation

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    404

    Caller/Callee Allocation

    Does anyone know in what situations it is generally advised to use one or the other.

    I have the feeling that if you stay within C, it really doesn't matter a whole lot, but if you are mixing C with various other languages it is probably better to have the callee allocate any needed memory.

    If you don't feel like explaining, I don't mind reading a good article, I just couldn't find anything.
    Last edited by carrotcake1029; 12-08-2008 at 03:05 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dynamic allocation from 1 instead of zero
    By cfdprogrammer in forum C Programming
    Replies: 27
    Last Post: 04-28-2009, 08:21 AM
  2. pointer to array with dynamic allocation
    By cfdprogrammer in forum C Programming
    Replies: 22
    Last Post: 04-07-2009, 09:56 AM
  3. Difference between straight and dynamic allocation?
    By darsunt in forum C++ Programming
    Replies: 10
    Last Post: 06-04-2008, 05:47 PM
  4. redundant allocation
    By George2 in forum C++ Programming
    Replies: 22
    Last Post: 03-06-2008, 06:43 PM
  5. Dynamic allocation (I thought it would crash)
    By Baaaah! in forum C Programming
    Replies: 16
    Last Post: 11-30-2005, 05:10 PM