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

Go to the source code of this file.

Functions

int ft_max (int a, int b)
 
long ft_maxl (long a, long b)
 
size_t ft_maxp (size_t a, size_t b)
 
double ft_maxf (double a, double b)
 

Function Documentation

◆ ft_max()

int ft_max ( int  a,
int  b 
)

Definition at line 16 of file ft_max.c.

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

◆ ft_maxf()

double ft_maxf ( double  a,
double  b 
)

Definition at line 40 of file ft_max.c.

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

◆ ft_maxl()

long ft_maxl ( long  a,
long  b 
)

Definition at line 24 of file ft_max.c.

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

◆ ft_maxp()

size_t ft_maxp ( size_t  a,
size_t  b 
)

Definition at line 32 of file ft_max.c.

33 {
34  if (a > b)
35  return (a);
36  else
37  return (b);
38 }