TheObserver
Programmer
Is there an easy way to resize a memory buffer without disturbing the contents of it?
For instance, if I have char membuff[40], and I copy 20 chars into it, how can I trim the buffer afterwards to a size of 20?
Thanks for your time.
For instance, if I have char membuff[40], and I copy 20 chars into it, how can I trim the buffer afterwards to a size of 20?
Thanks for your time.