1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
42-2nd-piscine/finish/C06/ex00/ft_print_program_name.c

27 lines
1.0 KiB
C
Raw Normal View History

2023-08-03 23:16:27 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_program_name.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/24 09:18:20 by adjoly #+# #+# */
/* Updated: 2023/07/24 09:22:02 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
int main(int ac, char **av)
{
int i;
i = 0;
(void)ac;
while (av[0][i])
{
write(1, &av[0][i], 1);
i++;
}
}