reset c array to zero
snippet in c

reset c array to zero

user1439

#define ZERO(a,n) do{\
	size_t i_ = 0, n_ = (n);\
	while (i_ < n_){\
		(a)[i_] = 0;\
		++i_;\
	}\
} while (0)