diff options
| author | Tyge Løvset <[email protected]> | 2020-09-18 11:55:29 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-09-18 11:55:29 +0200 |
| commit | 681873e4cb6ea076b79c6c70b2df2ba4e4c19bda (patch) | |
| tree | 69c0c3290189163937d4ab4203fe4565094657b0 /examples/queue.c | |
| parent | 692ab82818e2d65177e06d7717d9184b7bc27ff1 (diff) | |
| download | STC-modified-681873e4cb6ea076b79c6c70b2df2ba4e4c19bda.tar.gz STC-modified-681873e4cb6ea076b79c6c70b2df2ba4e4c19bda.zip | |
Changed <container>_ini macro constant to <container>_INIT, and <container>_destroy() to <container>_del.
Diffstat (limited to 'examples/queue.c')
| -rw-r--r-- | examples/queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/queue.c b/examples/queue.c index e1eaf5d4..fc1c2704 100644 --- a/examples/queue.c +++ b/examples/queue.c @@ -16,7 +16,7 @@ int main() { // Push ten million random numbers onto the queue.
for (int i=0; i<n; ++i)
cqueue_i_push(&queue, crand_uniform_i32(&rng, &dist));
-
+
// Push or pop on the queue ten million times
printf("%d\n", n);
for (int i=n; i>0; --i) {
@@ -27,5 +27,5 @@ int main() { --n, cqueue_i_pop(&queue);
}
printf("%d, %zu\n", n, cqueue_i_size(queue));
- cqueue_i_destroy(&queue);
+ cqueue_i_del(&queue);
}
|
