On Mon, 2002-03-04 at 15:06, Pierre Abbat wrote: > Translation:
>
> ---------- Forwarded Message ----------
> Subject: printf/translation strings
> Date: Mon, 04 Mar 2002 14:17:39 +0100
> From: Stephane Fritsch <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
>
>
> Bonjour, (j'espere que tu es francophone...)
>
> Desole de repondre hors liste mais je ne peux pas
> poster de l'adresse a laquelle je suis abonne a
> abiword-dev pour le moment.
Hi. Hope you speak French
Sorry to talk off-list, but I can't post with the adress I'm currentl
subscribed.
>
> Il est possible d'acceder a n'importe quel parametre avec
> des printfs (et meme plusieurs fois au meme) avec la notation
> %n$ (o� n est n-ieme parametre, en commencant � 1). Exemple :
It is possibl to access the parameter you wish with printfs (and even
several time the same) with the %n$ notation, where n is the index of
the parameter, 1 based. Example
>
> $ cat e.c
> int main()
> {
> printf("I have %2$d %1$s. Yes, %2$d.\n", "eggs", 4);
> }
> $ make e
> cc -o e e.c
> $ ./e
> I have 4 eggs. Yes, 4.
>
>
> Stephane
>
> -------------------------------------------------------
Hub
signature.asc
Description: This is a digitally signed message part
