Hi Daniel,
I suppose the function A in file a.c and function B in file b.c are as following, including the header file for the declaration of function B.
file a.c:
#include <Origin.h>
// need to include the header file,
// which contains the declaration of function B
#include "b.h"
void A()
{
// call function B, which is defined in b.c
B();
}
file b.c:
#include <Origin.h>
void B()
{
out_str("This is function B in file b.c");
}
and the header file should be (named b.h here):
void B(); // declaration of function B
If you don't want the header file, just add the declaration of function B in the file a.c, like:
#include <Origin.h>
void B(); // declaration of function B
void A()
{
// call function B, which is defined in b.c
B();
}
Penn