created math operations callbacks

part 1/3
This commit is contained in:
Václav Šmejkal 2022-07-22 17:42:26 +02:00
parent 06cacc3fa7
commit 86cd1e31c0
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -13,6 +13,10 @@
#include <why2/flags.h> #include <why2/flags.h>
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 unlink_cb(const char *fpath, UNUSED const struct stat *sb, UNUSED int typeflag, UNUSED struct FTW *ftwbuf)
{ {
int rv = remove(fpath); int rv = remove(fpath);