summaryrefslogtreecommitdiff
path: root/zap/src/strfill.c
diff options
context:
space:
mode:
Diffstat (limited to 'zap/src/strfill.c')
-rw-r--r--zap/src/strfill.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/zap/src/strfill.c b/zap/src/strfill.c
new file mode 100644
index 0000000..a113094
--- /dev/null
+++ b/zap/src/strfill.c
@@ -0,0 +1,11 @@
+/*
+ Copyright 2022 Gabriel Jensen.
+ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
+ If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
+*/
+
+#include <zap/priv.h>
+
+#include <stdint.h>
+
+void zap_strfill(char * const _str,char const _chr) {zap_memfill(_str,zap_strlen(_str),(uint_least8_t)_chr);}