>>687
整数の(オーバーフローを無視した)べき乗なら、書くのは簡単だろ。
K&Rにも乗ってるが
int power(int base, int n)
{
  int res = 1;
  while (n-- > 0)
    res *= base;
  return res;
}