Reply to Re: procedure thing
If you don't have an account, just leave the password field blank.
Pretty much.
From the DinkC Reference (Advanced Procedures):
// passing.c
void main(void)
{
int &two = 2;
// You can specify up to 9 parameters by calling a procedure directly.
// Will cause Dink to say "1, 2, 3, 4, 5, 6, 7, 8, 9"
say_stuff(1, &two, 3, 4, 5, 6, 7, 8, 9);
// You can only pass up to 8 parameters when using external.
// Will cause Dink to say "1, 2, 3, 4, 5, 6, 7, 8, 0"
external("passing", "say_stuff", 1, &two, 3, 4, 5, 6, 7, 8);
}
void say_stuff()
{
say("&arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7, &arg8, &arg9", 1);
}
From the DinkC Reference (Advanced Procedures):
// passing.c
void main(void)
{
int &two = 2;
// You can specify up to 9 parameters by calling a procedure directly.
// Will cause Dink to say "1, 2, 3, 4, 5, 6, 7, 8, 9"
say_stuff(1, &two, 3, 4, 5, 6, 7, 8, 9);
// You can only pass up to 8 parameters when using external.
// Will cause Dink to say "1, 2, 3, 4, 5, 6, 7, 8, 0"
external("passing", "say_stuff", 1, &two, 3, 4, 5, 6, 7, 8);
}
void say_stuff()
{
say("&arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &arg7, &arg8, &arg9", 1);
}