/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ftm_vecadd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/11 12:39:47 by charles #+# #+# */ /* Updated: 2020/05/11 12:39:49 by charles ### ########.fr */ /* */ /* ************************************************************************** */ #include "libftm_vec.h" t_ftmvec *ftm_vecadd(t_ftmvec *dst, t_ftmvec *other) { size_t i; if (dst->size != other->size) return (NULL); i = 0; while (i < dst->size) { dst->v[i] += other->v[i]; i++; } return (dst); }