For instance, I wanted to see how printf is written. I looked into the stdio.h file, but there, I could only find the function declaration, no definition.

you are viewing a single comment's thread
view the rest of the comments
[–] 11 points 5 months ago* (last edited 5 months ago) (1 child)

There are multiple implementations, the one often found on linux is glibc, you can find the source code for that online. printf is going to be a small wrapper for vfprintf though, so that is where you will probably find what you are looking for

  • source
  • hideshow 1 child comment