author | viric <viriketo@gmail.com> |
Wed, 16 Feb 2011 21:07:11 +0100 | |
branch | saveflie |
changeset 95 | 13360d8af313 |
parent 53 | 07500c5c53cb |
permissions | -rw-r--r-- |
53 | 1 |
/* |
2 |
Terminal Mixer - multi-point multi-user access to terminal applications |
|
3 |
Copyright (C) 2007 LluĂs Batlle i Rossell |
|
4 |
||
5 |
Please find the license in the provided COPYING file. |
|
6 |
*/ |
|
34 | 7 |
#include "main.h" |
8 |
||
9 |
int max(int a, int b) |
|
10 |
{ |
|
11 |
if (a > b) |
|
12 |
return a; |
|
13 |
return b; |
|
14 |
} |
|
43
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
34
diff
changeset
|
15 |
|
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
34
diff
changeset
|
16 |
int min(int a, int b) |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
34
diff
changeset
|
17 |
{ |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
34
diff
changeset
|
18 |
if (a < b) |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
34
diff
changeset
|
19 |
return a; |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
34
diff
changeset
|
20 |
return b; |
625794738afc
Added first attempt for an ethernet protocol. Even not tried.
viric@llimona
parents:
34
diff
changeset
|
21 |
} |