free() - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

free()

Gregry2Gregry2 Posts: 607Member
[b][red]This message was edited by Gregry2 at 2005-9-30 22:10:19[/red][/b][hr]
[b][red]This message was edited by Gregry2 at 2005-9-30 22:7:28[/red][/b][hr]
is there any way to free only a part of a buffer that is dynamic?

would this work?...it seems stupid...

free(buff[i]), and it'll start from i*sizeof(buff) to the end?
erg, that makes no sense though...

Or we just free every single block, one at a time?

i dont wanna have to segment my block...too much work.

thanx

by the way...for a intranet chatting program, which is better, connectionless sockets, or stream sockets?...

honto no kimochi kitsukanai furishite
totsuzen futari koi ni ochitano...

{2}rIng, its one of my favorite songs....


Comments

  • AsmGuru62AsmGuru62 Posts: 6,519Member
    [blue]Use [b]realloc()[/b] to decrease block size.[/blue]
  • stoberstober Posts: 9,765Member ✭✭✭
    :
    : by the way...for a intranet chatting program, which is better, connectionless sockets, or stream sockets?...
    :

    There is no guarentee that UDP packet will ever get to their destination, and the further away from the source computer the more likely that will happen.
  • Gregry2Gregry2 Posts: 607Member
    : [blue]Use [b]realloc()[/b] to decrease block size.[/blue]
    :
    grr, i forgot about reading about that, thanx anyway

    and about the connectless or not, do you know?

    thanx
    {2}rIng
Sign In or Register to comment.