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/pushcstr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 bittorrent/mbtstr/src/pushcstr.c (limited to 'bittorrent/mbtstr/src/pushcstr.c') diff --git a/bittorrent/mbtstr/src/pushcstr.c b/bittorrent/mbtstr/src/pushcstr.c new file mode 100644 index 0000000..d15776e --- /dev/null +++ b/bittorrent/mbtstr/src/pushcstr.c @@ -0,0 +1,11 @@ +#include "mbtstr/str.h" + +bool mbt_str_pushcstr(struct mbt_str *str, const char *cstr) +{ + if (cstr == NULL) + return false; + for (size_t i = 0; cstr[i]; i++) + if (!mbt_str_pushc(str, cstr[i])) + return false; + return true; +} -- cgit v1.2.3