From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 30 17:14:34 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 E601D106564A for ; Sat, 30 Apr 2011 17:14:34 +0000 (UTC) (envelope-from moeller.akt@googlemail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6F0E88FC14 for ; Sat, 30 Apr 2011 17:14:34 +0000 (UTC) Received: by bwz12 with SMTP id 12so5415572bwz.13 for ; Sat, 30 Apr 2011 10:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:message-id :thread-topic:thread-index:mime-version:content-type; bh=WfWQdCeXa4TUcupgk3o1ZAknu9Swz7iU07cWs4Oznrs=; b=I3ZVSaYNqba8H70TG+buzQml8MBM4koOIq2PqNzWH+JDPRGRxPEVKKBtRKug8oMAJ1 6TWbIiR4xvzS3Tnmln5++0CScrjrTVCzACrxjgXzzJN9+Omsuxu/pbuPvVkUYmuXSL6y Qgn6UrLCKysR/0FsTXK6CXo9EFVSuz9FxwJIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:mime-version:content-type; b=U4ZbnODMLCjgr+Ja5L0uMBcx7aS95HxTfT82LIpBZ3JU5vzVC0e4jcfSu+ZU8ti0mO 3Nk1fFhxCFJVsIMEr/WyfPg2Q+SZ+3QZU0pyGQwtabn8bXaU7ZUgUDYtNiG2Kr1/zVsI g646jmTr41EOSYtdUgVFnECBfJiAb91M7ncTc= Received: by 10.204.84.27 with SMTP id h27mr1207787bkl.158.1304181888497; Sat, 30 Apr 2011 09:44:48 -0700 (PDT) Received: from [192.168.0.108] (p5B24FE9D.dip.t-dialin.net [91.36.254.157]) by mx.google.com with ESMTPS id 16sm2253551bkm.6.2011.04.30.09.44.46 (version=SSLv3 cipher=OTHER); Sat, 30 Apr 2011 09:44:47 -0700 (PDT) User-Agent: Microsoft-Entourage/12.0.0.071130 Date: Sat, 30 Apr 2011 18:44:43 +0200 From: Martin =?ISO-8859-1?B?TfZsbGVy?= To: Message-ID: Thread-Topic: [LIBC] Modfied Version of sscanf Thread-Index: AcwHVefUJi7s0TZeTtSqUVBU0xZ4Vg== Mime-version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [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: Sat, 30 Apr 2011 17:14:35 -0000 Hi to all, This is my first email to this list, so hello to all members. The current version of sscanf, stops when a whitespace characters occurs in a string when the =8C%s=B9 (string) type is used. The following code: char name [20], value [20]; sscanf (=B3Test 2->Test 3=B2, =B3%s->%s=B2, name, value) printf (=B3%s->%s\n=B2, name, value); outputs total garbage on my FreeBSD-7.0-RELEASE #0 amd64. Is there already a way to do this or should we release a new version of sscanf, e.g. called sscanfWS. This modified version would output: Test 2->Test 3. With regards, Martin