%sequal modifier
From: Rob Somers (uberkermit_at_I-DISLIKE-SPAM.golden.net)
Date: 03/30/04
- Next message: Karl Heinz Buchegger: "Re: %sequal modifier"
- Previous message: Chris \( Val \): "Re: Renaming a project in VC++ 6.0!"
- Next in thread: Karl Heinz Buchegger: "Re: %sequal modifier"
- Reply: Karl Heinz Buchegger: "Re: %sequal modifier"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 20:58:27 -0500
Hi, I just came across the %sequal printf modifier, and I tried searching
the comp.lang.c group for any more info on it. I turned up about two posts
that used it, but no explanations as to what was going on with it. Also I
tired the web to find out more info, but it turned up nothing. Neither did
my manual pages. It seems to be a really obscure format specifier, but I
am hoping someone here can help me understand it, and its use.
I will add a snippet of code from comp.lang.c where I have seen it used:
main()
{
double d1, d2, atof();
d1 = atof(s1);
sprintf(s2,"%.60g",d1);
sscanf(s2,"%lf",&d2);
printf("d1 and d2 are %sequal!\n", d1 == d2 ? "" : "NOT ");
printf("s1 = %s\nd1 = %.60g\ns2 = %s\nd2 = %.60g\n",
s1,d1,s2,d2);
}
the entire post can be found here:
http://groups.google.com/groups?q=%25sequal+group:comp.lang.c.*&hl=en&lr=&ie=UTF-8&group=comp.lang.c.
*&selm=17814%40brahms.udel.edu&rnum=5&filter=0
any help appreciated.
Rob Somers
- Next message: Karl Heinz Buchegger: "Re: %sequal modifier"
- Previous message: Chris \( Val \): "Re: Renaming a project in VC++ 6.0!"
- Next in thread: Karl Heinz Buchegger: "Re: %sequal modifier"
- Reply: Karl Heinz Buchegger: "Re: %sequal modifier"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|