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
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---