minishell
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 }
size_t elemsize
Definition: ft_vect.h:27
void * p
Definition: ft_vect.h:28
size_t len
Definition: ft_vect.h:26
Here is the caller graph for this function: