Category : C Source Code
Archive   : CSRC2.ZIP
Filename : POW10.C

 
Output of file : POW10.C contained in archive : CSRC2.ZIP
/*
* double
* pow10(arg, power)
* double arg;
* int power;
*
* Returns arg * 10^power.
*/

double
pow10(arg, power)
double arg;
register int power;
{
register int i;

if (power < 0) {
while (++power <= 0)
arg /= 10.0;
}
else {
while (--power >= 0)
arg *= 10.0;
}
return (arg);
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : POW10.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/