maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_print_2d_arr.c File Reference
#include "libft.h"
Include dependency graph for ft_print_2d_arr.c:

Go to the source code of this file.

Functions

void ft_print_2d_arr (char **arr, char *name)
 

Function Documentation

◆ ft_print_2d_arr()

void ft_print_2d_arr ( char **  arr,
char *  name 
)

Definition at line 15 of file ft_print_2d_arr.c.

16{
17 int i;
18
19 i = 0;
20 if (ft_strlen(name) > 0)
21 ft_printf(GRN"----- %s[] -----\n"RESET, name);
22 while (arr && arr[i])
23 {
24 ft_printf(GRN"arr[%d]: %s at add: %p \n"RESET, \
25 i, arr[i], arr[i]);
26 i++;
27 }
28}
int ft_printf(const char *format,...)
Definition ft_printf.c:37
#define RESET
Definition libft.h:111
size_t ft_strlen(const char *s)
Definition ft_strlen.c:15
#define GRN
Definition libft.h:115

References ft_printf(), ft_strlen(), GRN, and RESET.

Referenced by final_quote_removal().

Here is the call graph for this function:
Here is the caller graph for this function: