Custom implementation of the libc printf function supporting variadic arguments and format specifiers.