C/Powszechne praktyki: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
→‎Konstruktory i destruktory: struct string -> string
** -> *
Linia 64:
 
<source lang="c">
void free_string(struct string **s)
{
assert(s != NULL && *s != NULL);
FREE((*s)->data); /* zwalniamy pamięć zajmowaną przez strukturę */
FREE(*s); /* usuwamy strukturę */
}
</source>