minishell
Functions
vect_at.c File Reference
#include "
ft_vect.h
"
Include dependency graph for vect_at.c:
Go to the source code of this file.
Functions
void *
vect_at
(const
t_vect
*vect, size_t index)
Function Documentation
◆
vect_at()
void* vect_at
(
const
t_vect
*
vect
,
size_t
index
)
Definition at line
15
of file
vect_at.c
.
16
{
17
unsigned
char
*p;
18
19
if
(vect->
len
<= index)
20
return
(NULL);
21
p = vect->
p
;
22
return
(p + (vect->
elemsize
* index));
23
}
t_vect::elemsize
size_t elemsize
Definition:
ft_vect.h:27
t_vect::p
void * p
Definition:
ft_vect.h:28
t_vect::len
size_t len
Definition:
ft_vect.h:26
Here is the caller graph for this function:
libft
ft_vect
vect_at.c
Generated by
1.9.1