rtnMichael
Programmer
ok, why does this give me a bus error?
int mail_num = 0;
char mail_text_array[9999];
...
...
...
mail_function(f,p1,p2,p3,p4,p5,p6,p7,p8,p9)
char *f;
{
sprintf(mail_text_array[mail_num],f,p1,p2,p3,p4,p5,p6,p7,p8,p9);
mail_num++;
}
when this does it just fine:
char mail_text[10];
...
...
...
mail_function(f,p1,p2,p3,p4,p5,p6,p7,p8,p9)
char *f;
{
sprintf(mail_text,f,p1,p2,p3,p4,p5,p6,p7,p8,p9);
}
Can somebody explain?
Thanks
M
int mail_num = 0;
char mail_text_array[9999];
...
...
...
mail_function(f,p1,p2,p3,p4,p5,p6,p7,p8,p9)
char *f;
{
sprintf(mail_text_array[mail_num],f,p1,p2,p3,p4,p5,p6,p7,p8,p9);
mail_num++;
}
when this does it just fine:
char mail_text[10];
...
...
...
mail_function(f,p1,p2,p3,p4,p5,p6,p7,p8,p9)
char *f;
{
sprintf(mail_text,f,p1,p2,p3,p4,p5,p6,p7,p8,p9);
}
Can somebody explain?
Thanks
M