diff -r 2a2403c63439 -r 0811fb9a8dba src/cx/string.h --- a/src/cx/string.h Tue Apr 15 22:16:05 2025 +0200 +++ b/src/cx/string.h Wed Apr 16 20:35:34 2025 +0200 @@ -39,6 +39,12 @@ #include "common.h" #include "allocator.h" +/** Expands a UCX string as printf arguments. */ +#define CX_SFMT(s) (int) (s).length, (s).ptr + +/** Format specifier for a UCX string */ +#define CX_PRIstr ".*s" + /** * The maximum length of the "needle" in cx_strstr() that can use SBO. */