docs/Writerside/topics/mempool.h.md

changeset 1298
0597f1f20ea9
parent 1283
89935fea4b7c
--- a/docs/Writerside/topics/mempool.h.md	Wed Apr 16 20:35:34 2025 +0200
+++ b/docs/Writerside/topics/mempool.h.md	Thu Apr 17 20:47:43 2025 +0200
@@ -155,12 +155,12 @@
     // iterate through the list and output the data
     CxIterator iter = cxListIterator(datalist);
     cx_foreach(CSVData*, data, iter) {
-        printf("Column A: %.*s | "
-               "Column B: %.*s | "
-               "Column C: %.*s\n",
-               (int)data->column_a.length, data->column_a.ptr,
-               (int)data->column_b.length, data->column_b.ptr,
-               (int)data->column_c.length, data->column_c.ptr
+        printf("Column A: %" CX_PRIstr " | "
+               "Column B: %" CX_PRIstr " | "
+               "Column C: %" CX_PRIstr "\n",
+               CX_SFMT(data->column_a),
+               CX_SFMT(data->column_b),
+               CX_SFMT(data->column_c)
         );
     }
 

mercurial