east const

Sat, 05 Nov 2022 17:44:52 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 05 Nov 2022 17:44:52 +0100
changeset 600
19211b88cc0f
parent 599
6536a9a75b71
child 601
95ba6014041b

east const

src/printf.c file | annotate | diff | comparison | revisions
--- a/src/printf.c	Sat Nov 05 17:17:17 2022 +0100
+++ b/src/printf.c	Sat Nov 05 17:44:52 2022 +0100
@@ -33,7 +33,7 @@
 
 #define UCX_PRINTF_BUFSIZE 256
 
-int cx_fprintf(void *stream, cx_write_func wfc, const char *fmt, ...) {
+int cx_fprintf(void *stream, cx_write_func wfc, char const *fmt, ...) {
     int ret;
     va_list ap;
     va_start(ap, fmt);
@@ -42,7 +42,7 @@
     return ret;
 }
 
-int cx_vfprintf(void *stream, cx_write_func wfc, const char *fmt, va_list ap) {
+int cx_vfprintf(void *stream, cx_write_func wfc, char const *fmt, va_list ap) {
     char buf[UCX_PRINTF_BUFSIZE];
     va_list ap2;
     va_copy(ap2, ap);
@@ -67,7 +67,7 @@
     return ret;
 }
 
-cxmutstr cx_asprintf_a(CxAllocator *allocator, const char *fmt, ...) {
+cxmutstr cx_asprintf_a(CxAllocator *allocator, char const *fmt, ...) {
     va_list ap;
     cxmutstr ret;
     va_start(ap, fmt);
@@ -76,7 +76,7 @@
     return ret;
 }
 
-cxmutstr cx_vasprintf_a(CxAllocator *a, const char *fmt, va_list ap) {
+cxmutstr cx_vasprintf_a(CxAllocator *a, char const *fmt, va_list ap) {
     cxmutstr s;
     s.ptr = NULL;
     s.length = 0;

mercurial