[DGD] xscanf

Raymond Jennings shentino at gmail.com
Mon Aug 10 21:43:58 CEST 2015


Does this hard limit of 128 also apply to Hydra?  I have a crazy hunch that
the uber version might support more.

On Mon, Aug 10, 2015 at 9:53 AM, Felix A. Croes <felix at dworkin.nl> wrote:

> Blain <blain20 at gmail.com> wrote:
>
> > 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.
>
> There is a hard limit of 128 arguments to any function, so you can use
> that as your constant and be sure that you are not imposing any additional
> limits.
>
> Regards,
> Felix Croes
> ____________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd



More information about the DGD mailing list