Calling a custom function by another function

Calling a custom function by another function

Hi,

is it possible to call a function by another function? For example i have two created customs functions:

void function1(ID)
{
 info iD;
}

void function2
{
iD = 1;
funtion2(ID);
}

Currently i have got a error message that there is no funtion 1.