minishell
ft_min.c File Reference
#include <stddef.h>
#include "ft_math.h"
Include dependency graph for ft_min.c:

Go to the source code of this file.

Functions

int ft_min (int a, int b)
 
long ft_minl (long a, long b)
 
size_t ft_minp (size_t a, size_t b)
 
double ft_minf (double a, double b)
 

Function Documentation

◆ ft_min()

int ft_min ( int  a,
int  b 
)

Definition at line 16 of file ft_min.c.

17 {
18  if (a < b)
19  return (a);
20  else
21  return (b);
22 }
Here is the caller graph for this function:

◆ ft_minf()

double ft_minf ( double  a,
double  b 
)

Definition at line 40 of file ft_min.c.

41 {
42  if (a < b)
43  return (a);
44  else
45  return (b);
46 }

◆ ft_minl()

long ft_minl ( long  a,
long  b 
)

Definition at line 24 of file ft_min.c.

25 {
26  if (a < b)
27  return (a);
28  else
29  return (b);
30 }

◆ ft_minp()

size_t ft_minp ( size_t  a,
size_t  b 
)

Definition at line 32 of file ft_min.c.

33 {
34  if (a < b)
35  return (a);
36  else
37  return (b);
38 }
Here is the caller graph for this function: