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);
|
|
|
|
}
|