aboutsummaryrefslogtreecommitdiff
path: root/c00/ex01
diff options
context:
space:
mode:
Diffstat (limited to 'c00/ex01')
-rw-r--r--c00/ex01/ft_print_alphabet.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/c00/ex01/ft_print_alphabet.c b/c00/ex01/ft_print_alphabet.c
new file mode 100644
index 0000000..f75442d
--- /dev/null
+++ b/c00/ex01/ft_print_alphabet.c
@@ -0,0 +1,33 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_print_alphabet.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/07/02 22:18:43 by cacharle #+# #+# */
+/* Updated: 2019/07/02 22:33:52 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include <unistd.h>
+
+void ft_print_alphabet(void);
+
+void ft_print_alphabet(void)
+{
+ char letter;
+
+ letter = 'a';
+ while (letter != 'z' + 1)
+ {
+ write(1, &letter, 1);
+ letter++;
+ }
+}
+
+int main(void)
+{
+ ft_print_alphabet();
+ return (0);
+}