Page 1 of 1

Posted: Tue Oct 15, 2002 11:13 pm
by BackupUser
Restored from previous forum. Originally posted by Justin.

Is there any way to trim the end of a filled buffer previously allocated with allocatememory?, appart of copying the part a i want to another buffer.

Posted: Wed Oct 16, 2002 8:25 am
by BackupUser
Restored from previous forum. Originally posted by Rings.

While you copy or save the buffer you set the lenght of the buffer.

Its a long way to the top if you wanna .....CodeGuru

Posted: Wed Oct 16, 2002 12:50 pm
by BackupUser
Restored from previous forum. Originally posted by Pupil.

have you tried reallocatememory()?

Posted: Wed Oct 16, 2002 2:07 pm
by BackupUser
Restored from previous forum. Originally posted by Justin.

Yes i tried reallocatememory but i think it expands a previously allocated block and returns the new starting address.

Anyways, i found a workaround for what i wanted to do, thanks for your help.