Hi AB,
Commonly, a function you defined in Origin C can be used as a LabTalk command, which can run in Command Window, Script Window, etc, so the function name should be unique.
If you just want to used the function in its defined file, you can use the static function. In this way, the same function name can be used in different file. However, you cannot use this function as a command.
For example:
In test1.c file, there is a function defined as below, which can only be called by the other function defined in test1.c file.
static void test()
{
out_str("test in test1.c");
}
In test2.c file, you can also defined a static function named test for other functions.
static void test()
{
out_str("test in test2.c");
}
However, when you try to run command test in Command Window, error message is "#Command Error!", that is to say the function test cannot be run as a command.
Penn