42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_compute_power_rec_size_t.c File Reference

The file containing the my_compute_power_rec_size_t function. More...

#include "my.h"

Functions

size_t my_compute_power_rec_size_t (int nb, int p)
 Returns the power (p) of the number (nb)
 

Detailed Description

The file containing the my_compute_power_rec_size_t function.

Author
Nicolas TORO

Function Documentation

◆ my_compute_power_rec_size_t()

size_t my_compute_power_rec_size_t ( int nb,
int p )

Returns the power (p) of the number (nb)

Note
Returns 0 if the power is negative
Parameters
nbThe number to calculate
powerThe power of the number
Returns
size_t The result of the power
Author
Nicolas TORO