On Sunday 06 May 2012 04:13:55 Mike Frysinger wrote:
> The latest POSIX spec introduces a "m" character to allocate buffers for
> the user when using scanf type functions.  This is like the old glibc "a"
> flag, but now standardized.  With packages starting to use these, we need
> to implement it.
> 
> for example:
>       char *s;
>       sscanf("foo", "%ms", &s);
>       printf("%s\n", s);
>       free(s);
> This will automatically allocate storage for "s", read in "foo" to it,
> and then display it.
> 
> I'm not terribly familiar with the stdio layer, so this could be wrong.
> But it seems to work for me.

well, can't be worse than what we have today (no %m support), so pushed out!
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to