[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ProgSoc] sprintf
does anyone know what the consequences of using sprintf with the same
string being used as the format string and as the buffer string might
be(sorry if that sentence is grammatically incorrect - caffeine level is
low atm:)
as in:
char s[20];
strcpy(s, "%8.2f");
sprintf(s, s, 78.33243);
Cheers,
\/|<
Victor Rajewski
vik@nospam.progsoc.uts.edu.au
http://www.progsoc.uts.edu.au/~vik
Writing about music is like dancing about architecture.
--Frank Zappa
--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.
This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>