[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
*printf Understanding
From: |
Bill Denney |
Subject: |
*printf Understanding |
Date: |
Tue, 7 Mar 2006 11:39:17 -0500 (EST) |
I have an application where I want to output a file with indenting (the
XML I was mentioning earlier). I thought that I would just use the %*s
feature to output a string that is the size of my indentation, but I found
that code like
sprintf('%*s', 0, ' ')
returns a single space instead of an empty string as I expected.
Is that the way it's supposed to work? If so, is there a better method
for doing this?
Bill
--
"I know, let's have a war and put our young killers to use."
-- Rachel Arieff & The Smileytown Boys, "Gun Control Solutions"
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- *printf Understanding,
Bill Denney <=