* strtold() function doesn't convert properly.
@ 2004-11-18 20:45 Skip
2004-11-18 22:50 ` Martin Stjernholm
0 siblings, 1 reply; 2+ messages in thread
From: Skip @ 2004-11-18 20:45 UTC (permalink / raw)
Strtold() doesn't work properly. Here is a test
program and its output.
Compile with: gcc progname && a.out
//-------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
int main ( int argc, char *argv[] )
{
char s[] = "1234567.987654";
long double ld=0;
char *endptr=NULL;
ld = strtold( s, &endptr );
printf("s = '%s' ld = %Lf\n", s, ld);
printf("s = '%p' endptr = %p\n", s, endptr);
return 0;
}
//-------------------------------------------------------------------------
// Here is the output.
// s = '1234567.987654' ld = -1766572058.000000
// s = '0xbffff930' endptr = 0xbffff93e
//-------------------------------------------------------------------------
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: strtold() function doesn't convert properly.
2004-11-18 20:45 strtold() function doesn't convert properly Skip
@ 2004-11-18 22:50 ` Martin Stjernholm
0 siblings, 0 replies; 2+ messages in thread
From: Martin Stjernholm @ 2004-11-18 22:50 UTC (permalink / raw)
Cc: bug-cc-mode, bug-gnu-emacs
Skip <skipskip9000@yahoo.com> wrote:
> Strtold() doesn't work properly. /.../
You got the wrong bug report address. This is for reporting a bug on
GNU Emacs or CC Mode, not gcc or libc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-18 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-18 20:45 strtold() function doesn't convert properly Skip
2004-11-18 22:50 ` Martin Stjernholm
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.