Can I identify Library functions?

Hi, not sure what to search for, for answers. Is there some way to identify function calls made to specific Libraries? Maybe by “dot” notation?

#include <time.h>
// Instead of this...
 int myHour = hour();

// Allow me to define which Library I am calling hour() from
 int myHour = time.hour();

Is there some way to identify function calls made to specific Libraries?

There is no need to. There can only be one function with a given name in any sketch.

Different classes and different objects (instantiations) can have the same function names. They are distinct.

PaulS: There is no need to. There can only be one function with a given name in any sketch.

Thanks but I just like to know when debugging stuff. I guess Pascal has treated me too nicely. This... FileUtils.OpenFile(F,'test.txt'); is the same as this... OpenFile(F,'test.txt'); but the first version tells me exactly where the function is to go modify it, or whatever. :)

Nope, nothing like that in C++. The easiest thing is to comment out includes until you see an error for that particular function being undefined.

Nope, nothing like that in C++.

Namespaces are just like that. But, then most people just add a #using statement so that they don’t need to fully qualify the name.

Personally, I think

std::cout << "looks dumb" << std::endl;
cout << "Much better" << endl;

Or course the latter requires

using std::cout;
using std::endl;

somewhere in my source code or header file.

OK, C++ seems to be the programmer's idea of self flagellation. :)

I have been spoiled with 30+ years of Pascal.