c - How do I view implementation source of printf? -


i want see how printf (and many other functions) works.

i wrote

#include <windows.h> #include <stdio.h> int main() { printf(""); return 0; } 

in main.c code , go definition in right click menu

but shows like

_check_return_opt_ _crtimp int __cdecl printf(_in_z_ _printf_format_string_ const char * _format, ...); #if __stdc_want_secure_lib__ _check_return_opt_ _crtimp int __cdecl printf_s(_in_z_ _printf_format_string_ const char * _format, ...); #endif 

i can't find hints on how printf works.

anyone let me know how learn standard library implementation?

here go:

http://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-common/vfprintf.c;h=d5690342536bc8cf948c786f663bb63f73f91f3a;hb=head.

this gnu c library implementation (glibc).


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -