-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_print_program_name.c
More file actions
27 lines (24 loc) · 1.05 KB
/
ft_print_program_name.c
File metadata and controls
27 lines (24 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_program_name.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: marvin <marvin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/22 15:43:46 by bwebb #+# #+# */
/* Updated: 2019/05/30 11:58:51 by bwebb ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_print_program_name(int argc, char **argv)
{
int i;
i = 0;
argc++;
while (argv[0][i] != '\0')
{
ft_putchar(argv[0][i]);
i++;
}
ft_putchar('\n');
}