Hi,
when we write
Code:
STRING *str100;


we are declaring an empty STRING pointer.

Code:
STRING *str100 = "";


Declares a STRING pointer that points to a newly created empty STRING struct. But only in global STRING pointers. For local pointers you must create it with str_create and remove it at the end.

Code:
STRING *strLocal = str_create("");
...
str_remove(strLocal);
strLocal = NULL;



Salud!

Last edited by txesmi; 03/19/18 20:51.