From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- bittorrent/mbtstr/src/pushcv.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bittorrent/mbtstr/src/pushcv.c (limited to 'bittorrent/mbtstr/src/pushcv.c') diff --git a/bittorrent/mbtstr/src/pushcv.c b/bittorrent/mbtstr/src/pushcv.c new file mode 100644 index 0000000..7f21562 --- /dev/null +++ b/bittorrent/mbtstr/src/pushcv.c @@ -0,0 +1,10 @@ +#include "mbtstr/str.h" +#include "mbtstr/view.h" + +bool mbt_str_pushcv(struct mbt_str *str, struct mbt_cview view) +{ + for (size_t i = 0; i < view.size; i++) + if (!mbt_str_pushc(str, view.data[i])) + return false; + return true; +} -- cgit v1.2.3