init
This commit is contained in:
BIN
Correction/cchauvetc06_1/ex00/a.out
Executable file
BIN
Correction/cchauvetc06_1/ex00/a.out
Executable file
Binary file not shown.
26
Correction/cchauvetc06_1/ex00/ft_print_program_name.c
Normal file
26
Correction/cchauvetc06_1/ex00/ft_print_program_name.c
Normal file
@ -0,0 +1,26 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_print_program_name.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: mlauro <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/07/25 13:22:56 by mlauro #+# #+# */
|
||||
/* Updated: 2022/08/01 13:04:03 by mlauro ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
if (argc >= 0)
|
||||
{
|
||||
while (argv[0][i])
|
||||
write(1, &argv[0][i++], 1);
|
||||
}
|
||||
write(1, "\n", 1);
|
||||
}
|
Reference in New Issue
Block a user