Mail Archives: djgpp/1997/10/16/21:46:23
Ruiter de M wrote:
>
> Jonathan Foster (jgf1 AT ukc DOT ac DOT uk) wrote:
> : The "fprintf" command will return the number of characters output,
>
> I thought it returns the number of correctly parsed arguments after
> the format string. But my Solaris man pages say you are right.
Close. scanf() returns the number of arguments it successfully read.
You just got it backwards. :)
My idea for a solution to the problem would be to create a buffer large
enough to store at least part of the long string and use sprintf() one
chunk at a time. I can't, offhand, imagine any situation where this
would be necessary, though...
--
---------------------------------------------------------------------
| John M. Aldrich | "Money is truthful. If a man speaks |
| aka Fighteer I | of his honor, make him pay cash." |
| mailto:fighteer AT cs DOT com | |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -