Sat, 05 Nov 2022 17:44:52 +0100
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;