Function overloading is common in object oriented languages. It allows the same function name to work with varied datatypes, and implement different functionality. The LabWindows/CVI compiler has a number of extensions to ANCI C, one of which is function overloading. This simple example demonstrates how to implement it.
The example calls a function, add2numbers, three times. On each call the function is passed two numeric data parameters of a different type (float, double, integer), that it adds together, and returns the result.
No hardware is used in this example.
There is further information in the LabWindows/CVI help, section: Programmer Reference>>LabWindows/CVI Compiler Overview>>C Language Extensions
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.