libft
Functions
ft_min.c File Reference

Go to the source code of this file.

Functions

int ft_min (int a, int b)
 Returns the minimum of two integer arguments. More...
 

Function Documentation

◆ ft_min()

int ft_min ( int  a,
int  b 
)

Returns the minimum of two integer arguments.

Note
This function is only needed, because the "Norme" (the code standard at School 42) forbids the use of parametrized macros.
Parameters
[in]aThe first integer to compare.
[in]bThe second integer to compare.
Returns
The smaller of the two integers.

Definition at line 23 of file ft_min.c.