0

In the printf.c file of the glibc source code package, the function is declared with underscores in the name. Why?

int
__printf (const char *format, ...)
A1A2A3A4
  • 413
  • 1
  • 5
  • 11
  • I haven't looked at glibc, but most likely `__printf` is a more private, low-level implementation of the function. Somewhere else glibc must also have an identifier `printf` defined as either a macro wrapping `__printf` or a function that calls it. – echristopherson Mar 13 '14 at 19:31
  • 1
    Right after that implementation is a macro that aliases that function to `printf` – Joe Mar 13 '14 at 19:31

0 Answers0