Thread: VB Redim

  1. #1
    Registered User
    Join Date
    Oct 2012

    VB Redim

    How to write a equivalent code in c replacing redim other then realloc

  2. #2
    Registered User
    Join Date
    Sep 2012
    French rouge: How to write a equivalent sentence in English replacing rouge other then red

  3. #3
    Registered User
    Join Date
    Jun 2005
    Use malloc() to allocate a new array, copy elements from the old array to the new one, and release the old array.

    That is sort of pointless, since that achieves what realloc() does, except that realloc() typically does it more efficiently.

    There is no other way in standard C.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Tags for this Thread

Website Security Test