-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv_get.c
21 lines (18 loc) · 1.02 KB
/
v_get.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* v_get.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: glegendr <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/12/12 22:03:59 by glegendr #+# #+# */
/* Updated: 2017/12/19 16:58:24 by glegendr ### ########.fr */
/* */
/* ************************************************************************** */
#include "vector.h"
void *v_get(t_vec *vec, int index)
{
void *pos;
pos = vec->private_content + index * vec->private_elem_size;
return (pos);
}