I'm new to C89, and it appears that you must declare a function before calling it. So this is unacceptable:
void foo() {
bar();
}
void bar() {
// do stuff
}
Because bar()
is defined after foo()
in the file. Is there any way to get around this? Do I need a header file?