This commit is contained in:
lclerel- lclerel-
2026-03-19 18:15:33 +01:00
commit 4b8aa8530c
5 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_program_name.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/19 15:36:50 by lclerel- #+# #+# */
/* Updated: 2026/03/19 18:05:56 by lclerel- ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
int main(int argc, char **argv)
{
int i;
(void)argc;
i = 0;
while (argv[0][i] != '\0')
i++;
write(1, argv[0], i);
write(1, "\n", 1);
}