-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_ary_viewof.c
22 lines (19 loc) · 1.05 KB
/
ft_ary_viewof.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_ary_create.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kyork <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/09/24 14:23:42 by kyork #+# #+# */
/* Updated: 2016/09/24 16:40:06 by kyork ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <stdlib.h>
t_array ft_ary_viewof(void *ptr, size_t count, const size_t sizeof_item)
{
t_array a;
a = (t_array){ptr, sizeof_item, count, 0};
return (a);
}