E
Edith Gross
Let us assume, f1(char *buf) and f1(char *buf) are two functions that
as a side effect calculate a string. The string will be placed in buf and
buf is returned by both f1 and f2.
Should this work:
char buf[100];
fprintf(fp,"%s%s",f1(buf),f2(buf));
Or should I take two different buffers, that is
char buf1[100],buf2[100];
fprintf(fp,"%s%s",f1(buf1),f2(buf2));
TIA,
EG
as a side effect calculate a string. The string will be placed in buf and
buf is returned by both f1 and f2.
Should this work:
char buf[100];
fprintf(fp,"%s%s",f1(buf),f2(buf));
Or should I take two different buffers, that is
char buf1[100],buf2[100];
fprintf(fp,"%s%s",f1(buf1),f2(buf2));
TIA,
EG