From owner-freebsd-arch@FreeBSD.ORG Fri Nov 30 22:32:18 2007 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9B0916A468 for ; Fri, 30 Nov 2007 22:32:18 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 6725D13C469 for ; Fri, 30 Nov 2007 22:32:18 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 7E555EBADA5; Sat, 1 Dec 2007 06:15:51 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id 5hdkyOzyBCXF; Sat, 1 Dec 2007 06:15:45 +0800 (CST) Received: from charlie.delphij.net (adsl-76-237-33-62.dsl.pltn13.sbcglobal.net [76.237.33.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 28724EB372B; Sat, 1 Dec 2007 06:15:43 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; b=WTL3ux3J+CvuML6dYc3FNY5E2KbIeddxklP57EHLAuwmK9ontAd/UL54lgl80FcJO svVyn8N0QDLtUrhzgXePA== Message-ID: <47508B81.4090705@delphij.net> Date: Fri, 30 Nov 2007 14:15:29 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: freebsd-arch@FreeBSD.org X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: Subject: "Rational" way of getting a number in human readable form? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 22:32:18 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, It seems that we have some code getenv_quad() that accepts numbers in "50M" "36G" alike form. Is it reasonable to add some sort of format characters to vsscanf(9) so that it would be able to handle this, or is it more appropriate to grow my own one? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHUIuBhcUczkLqiksRAryZAKCqg9MeZtDzLElypUFJECr/fAANZwCgspwo E/dfG/16FdYaChVg8+4a/hs= =0Vo+ -----END PGP SIGNATURE-----