From 86cd1e31c0e358a9d768e11be03c32be287073e8 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 22 Jul 2022 17:42:26 +0200 Subject: [PATCH] created math operations callbacks part 1/3 --- src/lib/misc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/misc.c b/src/lib/misc.c index ecfbfce..64e177d 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -13,6 +13,10 @@ #include +double multiply_cb(int a, int b) { return a * b; } +double subtract_cb(int a, int b) { return a - b; } +double sum_cb(int a, int b) { return a + b; } + int unlink_cb(const char *fpath, UNUSED const struct stat *sb, UNUSED int typeflag, UNUSED struct FTW *ftwbuf) { int rv = remove(fpath);