I would like to call the function "C"
fabs(double);
many times in my program, but I do not want to include the entire header file. Is it possible?
No need to include the whole file.Unused materials will not be compiled into your executable file.
Yes, you can manually prototype it. Just add
double fabs(double x);
to the beginning of the source file.
you can declare this function yourself, but why do you want to avoid including a header file?
Source: https://habr.com/ru/post/1286790/More articles:What features of Firebug does this Safari 4 web inspector not have? - safariMoving a C # program to another language - c #How do I port a .NET program? - .netWhy doesn't this C ++ 0x code call the move constructor? - c ++Can a slow network force a Python application to use * more * CPU? - pythonWhat is the difference between computer science and computer science? - computer-scienceThe upper limit of errors in this program is language-agnosticLua compiled scripts on Mac OS X - Intel vs. PPC - luaCall the universal extension method for an object? - genericsGetting shortcut content in jQuery - jqueryAll Articles