Question about evaluating the arguments of printf (maybe OT?)
From: Edith Gross (egrossde_at_yahoo.de)
Date: 11/02/03
- Next message: kazack: "Re: Question about pointers?"
- Previous message: Moonlit: "Re: how to avoid using another header file inside a header file?"
- Next in thread: Moonlit: "Re: Question about evaluating the arguments of printf (maybe OT?)"
- Reply: Moonlit: "Re: Question about evaluating the arguments of printf (maybe OT?)"
- Reply: Julián Albo: "Re: Question about evaluating the arguments of printf (maybe OT?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 02 Nov 2003 09:34:01 +0100
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 =---
- Next message: kazack: "Re: Question about pointers?"
- Previous message: Moonlit: "Re: how to avoid using another header file inside a header file?"
- Next in thread: Moonlit: "Re: Question about evaluating the arguments of printf (maybe OT?)"
- Reply: Moonlit: "Re: Question about evaluating the arguments of printf (maybe OT?)"
- Reply: Julián Albo: "Re: Question about evaluating the arguments of printf (maybe OT?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|