There is no prototype for exp10() from libm via <math.h>, even if -std=gnu9x is passed to gcc. Probably true with released version, but certainly true with ~x86 glibc. Reproducible: Always Steps to Reproduce: 1.gcc -Wall -std=gnu9x -lm mathh_and_exp10.c 2. 3. Actual Results: Gives a warning with -Wall. Otherwise it silently corrupts the stack, gives wrong answers, and gathers support for incumbents. I tried several times to give additional information. ESC clears this window, which is nasty if you are used to vi. Sheesh! ;-)
Please do: gcc -D_GNU_SOURCE or: #define _GNU_SOURCE #include <math.h>