![](https://seccdn.libravatar.org/avatar/5b748275c3dbb1ceee18ed554486547d.jpg?s=120&d=mm&r=g)
On Wednesday 2014-05-07 02:07, Carlos E. R. wrote:
On 2014-05-07 01:31, Cristian Rodríguez wrote:
int printf(const char *format, ...);
int main(void) { printf("Problem?"); return 0; }
Forgive me, my C is rusty and not familiar with Linux coding, but, the above code should call your own version of printf(), not the library one.
A personal version of printf() cannot be called - namely because the above sample does not have *any* included.
Yes, your function has the same name as the library one... You mean that the compiler should warn you of the situation? AFAIK, the compiler would only see a problem if you do include the library header for printf(), having doubts as to which one to use.
There is no problem; the rules for name resolution are rather clear cut in C (and even C++). -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org