aboutsummaryrefslogtreecommitdiff
path: root/c01/ex05
diff options
context:
space:
mode:
Diffstat (limited to 'c01/ex05')
-rw-r--r--c01/ex05/ft_putstr.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/c01/ex05/ft_putstr.c b/c01/ex05/ft_putstr.c
new file mode 100644
index 0000000..5290837
--- /dev/null
+++ b/c01/ex05/ft_putstr.c
@@ -0,0 +1,20 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_putstr.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/07/03 17:57:28 by cacharle #+# #+# */
+/* Updated: 2019/07/03 18:15:52 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+void ft_putstr(char *str)
+{
+ while (*str != '\0')
+ {
+ write(1, str, 1);
+ str++;
+ }
+}