I can't use %*x because the processing of some fields may depend on value of other fields.
Then you can't use a single sscanf expression to solve your problem anyway, so you are off topic.
Yes, but AFAIK - only for strings
For floats and ints the pointer is as large as the data it would point to, so it would be a silly way to make Pike slower.
/ Martin Nilsson (saturator)
Previous text:
2003-12-23 05:39: Subject: Re: C#-like properties
On Tue, Dec 23, 2003 at 04:42:42AM +0100, Martin B?hr wrote:
then you use %*x in the format to skip the ones you don't need.
I can't use %*x because the processing of some fields may depend on value of other fields.
i know it is done for strings.
Yes, but AFAIK - only for strings (because they are shared, and shared strings may not be implemented correctly without copy-on-write).
OTOH... floats/ints are not dynamically allocated? I remember some bits about this...
Regards, /Al
/ Brevbäraren