Logo Search packages:      
Sourcecode: bglibs version File versions

void str_free ( str s  ) 

Free a string's storage. This function also sets all the members of the structure to zero.

Definition at line 24 of file free.c.

References len, s, and size.

Referenced by str_sort().

{
  if (s->s) free(s->s);
  s->s = 0;
  s->len = 0;
  s->size = 0;
}


Generated by  Doxygen 1.6.0   Back to index