[DGD] xscanf

Blain blain20 at gmail.com
Mon Aug 10 13:28:13 CEST 2015


mixed *xscanf(string str, string format)
{
  array ret;

  ret = allocate(50);
  sscanf(str, format, ret...);
  return ret[.. member(ret, null) - 1];
}

Does this seem to be the best way to handle this?  I feel dirty arbitrarily
limiting it to 50.



More information about the DGD mailing list