Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 May 2011 12:25:04 -0400
From:      Diane Bruce <db@db.net>
To:        Martin M?ller <moeller.akt@googlemail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [LIBC] Modfied Version of sscanf
Message-ID:  <20110501162504.GA81754@night.db.net>
In-Reply-To: <C9E33E9A.379%moeller.akt@googlemail.com>
References:  <6ACFC545-73B5-49FA-A97F-BC500F9AFE40@gsoft.com.au> <C9E33E9A.379%moeller.akt@googlemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@FreeBSD.org db@db.net http://www.db.net/~db
  Why leave money to our children if we don't leave them the Earth?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110501162504.GA81754>