aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memzero.c
blob: d8bda031fe23fcebb337687697ce9550a78fe64d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <calt.h>
#include <stddef.h>

static char buf[100];

int main(void){
	calt_memzero(buf, sizeof buf);
	for(size_t i = 0; i < sizeof buf; i++){
		if('\0' != buf[i]){
			return 1;
		}
	}
	return 0;
}