From owner-freebsd-bugs Sun Nov 12 18:54:17 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA01671 for bugs-outgoing; Sun, 12 Nov 1995 18:54:17 -0800 Received: from insanus.matematik.su.se (insanus.matematik.su.se [130.237.198.12]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA01656 for ; Sun, 12 Nov 1995 18:54:08 -0800 Received: from localhost (prudens.matematik.su.se [130.237.198.5]) by insanus.matematik.su.se (8.7.1/8.6.9) with ESMTP id DAA09483 for ; Mon, 13 Nov 1995 03:53:56 +0100 (MET) Message-Id: <199511130253.DAA09483@insanus.matematik.su.se> X-Address: Department of Mathematics, Stockholm University S-106 91 Stockholm SWEDEN X-Phone: int+46 8 162000 X-Fax: int+46 8 6126717 X-Url: http://www.matematik.su.se To: freebsd-bugs@freebsd.org Subject: strtouq broken in FreeBSD 2.0.5 Date: Mon, 13 Nov 1995 03:53:54 +0100 From: Torbjorn Granlund Sender: owner-bugs@freebsd.org Precedence: bulk This program demonstrates that strtouq doesn't work right. As a matter of fact, it seems to have more than one problem, since other things fail when a non-zero base argument is passed. The author of strtouq should learn to test his/her code. #include #include #include main () { unsigned long long rs = strtouq ("12345678910", 0, 0); printf ("%qx\n", rs); }