From c9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:08:27 +0200 Subject: add: graphs et rushs --- rushs/tinyprintf/element_count/element_count.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rushs/tinyprintf/element_count/element_count.c (limited to 'rushs/tinyprintf/element_count/element_count.c') diff --git a/rushs/tinyprintf/element_count/element_count.c b/rushs/tinyprintf/element_count/element_count.c new file mode 100644 index 0000000..cec47ae --- /dev/null +++ b/rushs/tinyprintf/element_count/element_count.c @@ -0,0 +1,10 @@ +#include "element_count.h" + +size_t element_count(int *begin, int *end) +{ + if (!begin || !end || begin >= end) + { + return 0; + } + return end - begin; +} -- cgit v1.2.3