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-1st-piscine/ended/C06/ex00/ft_print_program_name.c

30 lines
1.0 KiB
C
Raw Normal View History

2023-08-06 20:12:38 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_program_name.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ajoly <ajoly@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/28 14:40:17 by ajoly #+# #+# */
/* Updated: 2022/08/02 14:15:41 by ajoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
int main(int argc, char **argv)
{
int i;
i = 0;
if (argc >= 1)
{
while (argv[0][i])
{
write(1, &argv[0][i], 1);
i++;
}
write(1, "\n", 1);
}
}