Hi all. I have a problem concerning a function call that is not liking my code apparently
For some reason I can not get my method stubs to work out.
I have it set up like this
for example say I have a function
void function1(char string1[])
{
various commands
int x=function2(); //this is a function call to store x as result of function2()
more commands
}
then i have
int function2( char string1[] )
{
int x=atoi("%s",string1);
return x;
}
is this the right method to do a stub? When I try to compile this it can not get by the function call int x=function2();
the error meassage is "too few arguements in function a^"
Thanks for any insight on this!
For some reason I can not get my method stubs to work out.
I have it set up like this
for example say I have a function
void function1(char string1[])
{
various commands
int x=function2(); //this is a function call to store x as result of function2()
more commands
}
then i have
int function2( char string1[] )
{
int x=atoi("%s",string1);
return x;
}
is this the right method to do a stub? When I try to compile this it can not get by the function call int x=function2();
the error meassage is "too few arguements in function a^"
Thanks for any insight on this!