Exos
This commit is contained in:
25
ex0/ft_print_program_name.c
Normal file
25
ex0/ft_print_program_name.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user