Follow-up Comment #3, bug #17846 (project freeciv):

> This pattern and the one I proposed can't really coexist.
Oh, I suppose they could, with something like

char *astr_to_str(struct astr *astr) {
  char *str = astr->str;
  *astr = zero_astr;
  return str;

This destroys the astring and returns a string with a lifetime of its own.
Maybe I'll add this.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to