Hi Oliver,

On Sat, Dec 18, 2010 at 1:13 AM, Olivier Hallot
<olivier.hal...@documentfoundation.org> wrote:
> I have another one which I suspect is wrong:
>
> "Process stopped at iteration %d of %d."
>
> Usually %d is replaced by a value at runtime, so it may show to the user as
> "100 of 100", "234 of 234".... i.e. the two numbers will be the same always.

No - they are not the same - the "d" is not a variable name, but a
data-type (%s would be a string, %d is decimal/a number)

> Am I wrong?

Yes.
It's used like this for example:
sprintf (buffer, "%d plus %d is %d", a, b, a+b);
first %d is replaced by the value of a, second %d is replaced by the
value of b, and third is replaced by the result of a+b

ciao
Christian

-- 
Unsubscribe instructions: E-mail to l10n+h...@libreoffice.org
List archive: http://www.libreoffice.org/lists/l10n/
*** All posts to this list are publicly archived for eternity ***

Reply via email to