From owner-freebsd-hackers@FreeBSD.ORG Sun May 1 16:42:26 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 058D4106564A for ; Sun, 1 May 2011 16:42:26 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (diana.db.net [66.113.102.10]) by mx1.freebsd.org (Postfix) with ESMTP id E203F8FC0A for ; Sun, 1 May 2011 16:42:25 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id 7C7772283B; Sun, 1 May 2011 10:20:08 -0600 (MDT) Received: by night.db.net (Postfix, from userid 1000) id 651085E23; Sun, 1 May 2011 12:25:04 -0400 (EDT) Date: Sun, 1 May 2011 12:25:04 -0400 From: Diane Bruce To: Martin M?ller Message-ID: <20110501162504.GA81754@night.db.net> References: <6ACFC545-73B5-49FA-A97F-BC500F9AFE40@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: [LIBC] Modfied Version of sscanf X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2011 16:42:26 -0000 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 : > > Thanks for your reply. > Ok, another example. I try to parse a request, coming from a client in the > form: > GET HTTP/1.1. > > It is expected that 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?