diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-05-28 13:24:03 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-05-28 13:24:03 -0400 |
commit | 003a1e962aab767a030dab1d451fe0abc52bd32f (patch) | |
tree | 436d94818f9d203561e5838bcb9440dff1ecbd99 | |
parent | e48d50df121d5852baa001fb7b7572dc47cb73a0 (diff) |
replaced min macro with func
-rw-r--r-- | buf.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,7 +3,9 @@ #include <string.h> #include "buf.h" -#define min(a,b) (a<b) ? a : b +int min(int a, int b) { + return ((a<b) ? a : b); +} struct buf_node{ char* text; |