Nmap Development mailing list archives

Re: [PATCH] Change pow(, 0.5) -> sqrt() in osscan[2].cc


From: Andreas Ericsson <ae () op5 se>
Date: Mon, 04 Sep 2006 11:12:20 +0200

Kris Katterjohn wrote:
Fyodor wrote:
On Sat, Sep 02, 2006 at 10:28:31PM -0500, Kris Katterjohn wrote:
I was going to assume it was because it's in ANSI C, but I went ahead
and looked. I saw this and thought it meant it's portable to Windows:

http://msdn2.microsoft.com/en-us/library/f1xa99e6.aspx
OK, then I'll apply it and hope for the best.

Cheers,
-F


It's also kinda like why would some library have pow() but not sqrt()?  I
remember reading about both of them in K&R.


sqrt() and pow() are both, according to their man-pages, requirements 
for SVID 3, POSIX, 4.3BSD and ISO 9899 conformance.

Given sufficient effort I'm sure it's possible to dig up some system 
that doesn't have either. I'm also fairly certain it's not worth 
bothering with supporting those systems.

-- 
Andreas Ericsson                   andreas.ericsson () op5 se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: