aboutsummaryrefslogtreecommitdiff
path: root/c04/ex01
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-06 08:42:30 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-06 08:42:30 +0200
commit244f5209ba7885daa513e3780b66df454422b910 (patch)
treec2123d55a7431de9bb55371dcc78c955da607c6f /c04/ex01
parent1efffca20580601c99fce13f0ade1b36ed5665a4 (diff)
downloadpiscine-244f5209ba7885daa513e3780b66df454422b910.tar.gz
piscine-244f5209ba7885daa513e3780b66df454422b910.tar.bz2
piscine-244f5209ba7885daa513e3780b66df454422b910.zip
c03 and begin c04
Diffstat (limited to 'c04/ex01')
-rw-r--r--c04/ex01/ft_putstr.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/c04/ex01/ft_putstr.c b/c04/ex01/ft_putstr.c
new file mode 100644
index 0000000..e98b5a0
--- /dev/null
+++ b/c04/ex01/ft_putstr.c
@@ -0,0 +1,22 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_putstr.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/07/06 07:22:38 by cacharle #+# #+# */
+/* Updated: 2019/07/06 08:34:03 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include <unistd.h>
+
+void ft_putstr(char *str)
+{
+ while (*str)
+ {
+ write(1, str, 1);
+ str++;
+ }
+}