/** * exptui.c * Our first test of the expt procedure. */ #include #include #include "expt.h" int main (int argc, char **argv) { double x = strtod (argv[1], NULL); int n = (int) strtol (argv[2], NULL, 10); double result = expt (x, n); printf ("%lf^%d = %lf\n", x, n, result); exit (EXIT_SUCCESS); } /* main (int, char**) */