Need info about the internals of printf

Florian Weimer fweimer@redhat.com
Mon Jun 17 18:37:00 GMT 2019


* Eswar Chandra Tadikonda:

> I actually got stuck at __vfprintf_internal function which i am not able to
> find the definition through tags.

Tags browsers generally do not work with the glibc sources due to heavy
use of the preprocessor, unfortunately.

stdio-common/vfprintf-internal.c has the implementation, and it contains
this:

#ifndef COMPILE_WPRINTF
# define vfprintf       __vfprintf_internal

So its vfprintf function is actually __vfprintf_internal.

> BTW, is this the actual function called internally by printf ?

Yes, calls eventually end up there.

Thanks,
Florian



More information about the Libc-help mailing list