how to write printf function in c

#include <stdarg.h>
#include <stdio.h>

void my_printf(const char *format, ...) {
    va_list args;
    va_start(args, format);
    vprintf(format, args);
    va_end(args);
}

int main() {
    my_printf("This is a custom printf function: %d %s %c\n", 10, "hello", 'A');
    return 0;
}