comp20003-project03/lib/my_putstr.c

19 lines
268 B
C

/*
** EPITECH PROJECT, 2017
** my_putstr
** File description:
** Display one by one the characters of a string.
*/
#include "../include/libmy.h"
int my_putstr(char const *str) {
int i = 0;
while (str[i] != '\0') {
my_putchar(str[i]);
i++;
}
return (0);
}