2012/1/30 Richard Braun <[email protected]>: > That's what realloc() does. Well, "resize the buffer if possible" would > be more accurate. ^_^'
What I meant was: I do a free()/malloc() each time someone asks for the buffer. It would be more efficient to check if the old buffer is big enough to be re-used or if it needs to be increased using realloc() and then re-used. Tanguy -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/cajbrmlavo8xqrutko5_wgpu6nejkpqn8t90g8ykv9k-nko9...@mail.gmail.com

