I would like to call the "C" function
fabs(double);
numerous times in my program, but I don't want to include the whole header file. Is this possible?
I would like to call the "C" function
fabs(double);
numerous times in my program, but I don't want to include the whole header file. Is this possible?
It doesn't hurt to include the whole file.
Not used stuff will not be compiled into your executable.
Yep, you can manually prototype it. Just add
double fabs(double x);
to the top of your source file.
you could declare the function yourself, but why would you want to avoid including the header file ?