#include <math.h>
double pow(double x, double y);
float powf(float x, float y);
long double powl(long double x, long double y);
To link with math library use -lm with gcc flags.
A portable program that needs to check for an error from a mathematical function should set errno ...