summaryrefslogtreecommitdiff
path: root/src/example.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-11-27 12:20:27 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-11-27 12:20:27 -0800
commit16b9b42cecc81f7540aef85459cf1fa191fa641c (patch)
treefe3a91276b9ccebb692643e00d7acc54fea632c3 /src/example.c
parentadb18cde6ca95b7c0533fad70edaf3f78d3597a2 (diff)
libpad: add pad flags and flag for zeroing memory
Diffstat (limited to 'src/example.c')
-rw-r--r--src/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example.c b/src/example.c
index 12383fa..8d5529c 100644
--- a/src/example.c
+++ b/src/example.c
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
foo_t *f[10 * CHUNK_CNT];
pad_t *p;
- p = pad_new(sizeof(foo_t) * 256);
+ p = pad_new(sizeof(foo_t) * 256, PAD_FLAGS_ZERO);
assert(p);
for (int n = 0; n < 10; n++) {
© All Rights Reserved