From 081739ea4e2e01d663d37c20b0c3fc401f1a8aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos?= Date: Fri, 20 Jan 2023 10:24:50 +0100 Subject: [PATCH] Added helper lib to mock std. func. --- src/c/helper.c | 6 ++++++ src/c/helper.h | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 src/c/helper.c create mode 100644 src/c/helper.h diff --git a/src/c/helper.c b/src/c/helper.c new file mode 100644 index 0000000..7f94482 --- /dev/null +++ b/src/c/helper.c @@ -0,0 +1,6 @@ +#include "helper.h" + +int randomInt() +{ + return rand(); +} diff --git a/src/c/helper.h b/src/c/helper.h new file mode 100644 index 0000000..d7ceb04 --- /dev/null +++ b/src/c/helper.h @@ -0,0 +1,7 @@ +#ifndef HELPER_H +#define HELPER_H +//erlaubt es z.b. rand() zu mocken + +int randomInt; + +#endif \ No newline at end of file