comp20003-project03/lib/my_putstr.c

20 lines
268 B
C
Raw Permalink Normal View History

2021-10-11 12:24:40 +11:00
/*
** EPITECH PROJECT, 2017
** my_putstr
** File description:
** Display one by one the characters of a string.
*/
#include "../include/libmy.h"
2021-10-21 20:02:57 +11:00
int my_putstr(char const *str) {
2021-10-11 12:24:40 +11:00
int i = 0;
while (str[i] != '\0') {
my_putchar(str[i]);
i++;
}
2021-10-21 20:02:57 +11:00
2021-10-11 12:24:40 +11:00
return (0);
}