push
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_print_param.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: sgongas <sgongas@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/22 23:49:03 by sgongas #+# #+# */
|
||||
/* Updated: 2026/02/22 23:52:50 by sgongas ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
void ft_putchar(char c)
|
||||
{
|
||||
write(1, &c, 1);
|
||||
}
|
||||
|
||||
void ft_putstr(char *str)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
while (str[i])
|
||||
ft_putchar(str[i++]);
|
||||
}
|
||||
|
||||
int main(int ac, char **av)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 1;
|
||||
(void)ac;
|
||||
while (av[i])
|
||||
{
|
||||
ft_putstr(av[i++]);
|
||||
ft_putchar('\n');
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user