[LIBC] Modfied Version of sscanf
Diane Bruce
db at db.net
Sun May 1 16:42:26 UTC 2011
On Sun, May 01, 2011 at 04:45:14PM +0200, Martin M?ller wrote:
> Am 01.05.11 00:53 schrieb "Daniel O'Connor" unter <doconnor at gsoft.com.au>:
>
> Thanks for your reply.
> Ok, another example. I try to parse a request, coming from a client in the
> form:
> GET <resource> HTTP/1.1.
>
> It is expected that <resource> can contain space characters (even if
> its not the case in reality).
>
> How would you do that with sscanf ?
You don't. You write a tokeniser and parser.
You are trying to misuse sscanf.
- Diane
--
- db at FreeBSD.org db at db.net http://www.db.net/~db
Why leave money to our children if we don't leave them the Earth?
More information about the freebsd-hackers
mailing list