But sprintf won't produce 'x', so you are not aiming (exactly) for a reversed sprintf("%O"). I think you should.
/ Martin Nilsson (Åskblod)
Previous text:
2003-02-11 14:54: Subject: sscanf %O
I started to write a sscanf %O, which I believe we have discussed previously, to match sprintf %O (and generic Pike constants).
So far, it understands integers, strings and character constants:
array_sscanf("17 "hepp" 'x' gurka","%O%O%O%s");
(3) Result: ({ /* 4 elements */ 17, "hepp", 120, " gurka" })
/ Mirar