From owner-freebsd-current@FreeBSD.ORG Tue Apr 12 20:08:26 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9210816A4CE for ; Tue, 12 Apr 2005 20:08:26 +0000 (GMT) Received: from thor.66h.42h.de (mirsolutions.de [81.169.132.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA15F43D5C for ; Tue, 12 Apr 2005 20:08:25 +0000 (GMT) (envelope-from tg@66h.42h.de) Received: from odem.66h.42h.de (root@odem.66h.42h.de [IPv6:2001:6f8:94d:1:2c0:9fff:fe1a:6a01]) by thor.66h.42h.de (8.13.1/8.13.1) with ESMTP id j3CK8LWO015893 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 12 Apr 2005 20:08:24 GMT Received: from localhost (tg@localhost [IPv6:::1]) by odem.66h.42h.de (8.13.3/8.13.3) with ESMTP id j3CK8K7U017493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Apr 2005 20:08:20 GMT Date: Tue, 12 Apr 2005 20:08:19 +0000 (UTC) From: Thorsten Glaser To: freebsd-current@freebsd.org In-Reply-To: <1113336183.27362.37.camel@localhost.localdomain> Message-ID: References: <1113336183.27362.37.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Wed, 13 Apr 2005 15:55:49 +0000 Subject: Re: strtonum(3) in FreeBSD? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 20:08:26 -0000 Dixitur: >Based on the man page, I see the following deficiencies: >1) No support for bases other than 10 Not having base 16 (sedecimal) support really is why I am still using strtol(l) in my code... >2) No provision to return the end of the converted string >3) No simple way to distinguish errors from a valid zero. The OpenBSD people said (when I proposed to change #1) that they want an uncomplicated interface, and I think #3 is not necessary, and I can live without #2. Just my 0.02 EUR //mirabile