aboutsummaryrefslogtreecommitdiff
path: root/ft_strclr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strclr.c')
-rw-r--r--ft_strclr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ft_strclr.c b/ft_strclr.c
new file mode 100644
index 0000000..17fdc1f
--- /dev/null
+++ b/ft_strclr.c
@@ -0,0 +1,5 @@
+void ft_strclr(char *s)
+{
+ while (*s)
+ *s++ = '\0';
+}