Just multiply the number with itself so many times (assuming the power part is a integer)
int power_function(int number,int potencion)
{
int number_cpy = number;
int i = 1;
while(i != potencion)
{
number = number*number_cpy;
i++;
}
printf("%d",number);
return number;
}