Date: Mon, 13 Nov 1995 03:53:54 +0100 From: Torbjorn Granlund <tege@matematik.su.se> To: freebsd-bugs@freebsd.org Subject: strtouq broken in FreeBSD 2.0.5 Message-ID: <199511130253.DAA09483@insanus.matematik.su.se>
index | next in thread | raw e-mail
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 <sys/types.h>
#include <stdlib.h>
#include <limits.h>
main ()
{
unsigned long long rs = strtouq ("12345678910", 0, 0);
printf ("%qx\n", rs);
}
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511130253.DAA09483>
