summaryrefslogtreecommitdiffhomepage
path: root/examples/priority.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/priority.c')
-rw-r--r--examples/priority.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/priority.c b/examples/priority.c
index 730ae5e3..e4a20da9 100644
--- a/examples/priority.c
+++ b/examples/priority.c
@@ -1,6 +1,7 @@
+
+#include <stdio.h>
#include <time.h>
#include <stc/cvec.h>
-#include <stc/cfmt.h>
#include <stc/cpqueue.h>
#include <stc/cmap.h>
#include <stc/crandom.h>
@@ -27,7 +28,7 @@ int main() {
// Extract the hundred smallest.
c_forrange (100) {
- c_print(1, "{} ", *cpqueue_i_top(&heap));
+ printf("%zd ", *cpqueue_i_top(&heap));
cpqueue_i_pop(&heap);
}
cpqueue_i_del(&heap);