Espaces de noms
Variantes
Affichages
Actions

vprintf, vfprintf, vsprintf, vsnprintf

De cppreference.com
< c‎ | io

 
 
Fichier d'entrée / sortie
Fonctions
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Déposer accès
Original:
File access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Entrée / sortie directe
Original:
Direct input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fread
fwrite
Entrée non formatée / sortie
Original:
Unformatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Mise en forme d'entrée / sortie
Original:
Formatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
scanf
fscanf
sscanf
vscanf
vfscanf
vsscanf
(C99)
(C99)
(C99)
printf
fprintf
sprintf
snprintf



(C99)
vprintf
vfprintf
vsprintf
vsnprintf



(C99)
Fichier de positionnement
Original:
File positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ftell
fgetpos
fseek
fsetpos
rewind
Erreur de manipulation
Original:
Error handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
clearerr
feof
ferror
perror
Les opérations sur les fichiers
Original:
Operations on files
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
remove
rename
tmpfile
tmpnam
 
Defined in header <stdio.h>
int vprintf( const char *format, va_list vlist );
(1)
int vfprintf( FILE *stream, const char *format, va_list vlist );
(2)
int vsprintf( const char *buffer, const char *format, va_list vlist );
(3)
int vsnprintf( char *buffer, int buf_size, const char *format, va_list vlist );
(4)
Charge les données à partir des emplacements, définis par vlist, les convertit en équivalents de chaînes de caractères et écrit les résultats dans une variété de puits .
Original:
Loads the data from the locations, defined by vlist, converts them to character string equivalents and writes the results to a variety of sinks.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Écrit les résultats stdout .
Original:
Writes the results to stdout.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Écrit les résultats dans un fichier .. stream flux
Original:
Writes the results to a file stream stream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Écrit les résultats dans un buffer chaîne de caractères .
Original:
Writes the results to a character string buffer.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
Écrit les résultats dans un buffer chaîne de caractères. À la plupart des personnages sont écrits buf_size. La chaîne de caractères résultante sera terminé par un caractère nul, à moins buf_size est nul .
Original:
Writes the results to a character string buffer. At most buf_size characters are written. The resulting character string will be terminated with a null character, unless buf_size is zero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Sommaire

[modifier] Paramètres

stream -
flux de fichier de sortie dans lequel écrire
Original:
output file stream to write to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
buffer -
pointeur vers une chaîne de caractères à écrire
Original:
pointer to a character string to write to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
buf_size -
nombre maximum de caractères à écrire
Original:
maximum number of characters to write
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
format -
pointeur vers une chaîne de caractères terminée par NULL spécifiant la façon d'interpréter les données.
La chaîne de format est constitué de caractères blancs, caractère non blanc (sauf %) et les spécifications de conversion. Chaque spécification de conversion a le format suivant:
Original:
The format string consists of whitespace characters, non-whitespace characters (except %) and conversion specifications. Each conversion specification has the following format:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • % caractère introductif
    Original:
    introductory % character
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (en option) une ou plusieurs indicateurs qui modifient le comportement de la conversion:
    Original:
    (en option) one or more flags that modify the behavior of the conversion:
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • -: le résultat de la conversion est justifié à gauche dans le champ (par défaut, il est justifié à droite)
    Original:
    -: the result of the conversion is left-justified within the field (by default it is right-justified)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • +: le signe de conversions signé est toujours ajouté au résultat de la conversion (par défaut le résultat est précédée par moins que si elle est négative)
    Original:
    +: the sign of signed conversions is always prepended to the result of the conversion (by default the result is preceded by minus only when it is negative)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Espace: si le résultat d'une conversion signée ne commence pas par un caractère de signe, ou est vide, l'espace est ajouté au résultat. Il est ignoré si l'indicateur + est présent .
    Original:
    space: if the result of a signed conversion does not start with a sign character, or is empty, space is prepended to the result. It is ignored if + flag is present.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • #:' autre forme de la conversion est effectuée. Voir le tableau ci-dessous pour effets exacts .
    Original:
    # : alternative form of the conversion is performed. See the table below for exact effects.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • 0: pour nombres entiers et décimaux conversions nombre de points, des zéros sont utilisés pour remplir le champ au lieu de l'espace' caractères. Pour les nombres à virgule flottante, elle est ignorée si la précision est explicitement spécifié. Pour les autres conversions en utilisant ces résultats pavillon à un comportement indéfini. Il est ignoré si l'indicateur - est présent .
    Original:
    0 : for integer and floating point number conversions, leading zeros are used to pad the field instead of space characters. For floating point numbers it is ignored if the precision is explicitly specified. For other conversions using this flag results in undefined behavior. It is ignored if - flag is present.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Valeur (en option) entier ou * qui spécifie la largeur de champ minimale. Le résultat est rembourré avec de l'espace' caractères (par défaut), le cas échéant, sur la gauche lorsque justifié à droite, ou sur la droite si justifié à gauche. Dans le cas où on utilise *, la largeur est spécifiée par un argument supplémentaire de int type. Si la valeur de l'argument est négatif, il en résulte de la largeur - drapeau champ spécifié et positif .
    Original:
    (en option) integer value or * that specifies minimum field width. The result is padded with space characters (by default), if required, on the left when right-justified, or on the right if left-justified. In the case when * is used, the width is specified by an additional argument of type int. If the value of the argument is negative, it results with the - flag specified and positive field width.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (en option) . suivie par nombre entier ou * qui spécifie' précision de la conversion. Dans le cas où * est utilisé, la précision' est spécifiée par un argument supplémentaire de int type. Si la valeur de cet argument est négatif, il est ignoré. Voir le tableau ci-dessous pour les effets exacts de précision' .
    Original:
    (en option) . followed by integer number or * that specifies precision of the conversion. In the case when * is used, the precision is specified by an additional argument of type int. If the value of this argument is negative, it is ignored. See the table below for exact effects of precision.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (en option)' modificateur de longueur qui spécifie la taille de l'argument
    Original:
    (en option) length modifier that specifies the size of the argument
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • le format spécificateur de conversion
    Original:
    conversion format specifier
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
Les spécificateurs de format suivants sont disponibles:
Original:
The following format specifiers are available:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversion
specifier
Explanation Argument type
length modifier hh h (none) l ll j z t L
% writes literal %. The full conversion specification must be %%. N/A N/A N/A N/A N/A N/A N/A N/A N/A
c writes a single character N/A N/A char wchar_t N/A N/A N/A N/A N/A
s writes a character string N/A N/A char* wchar_t* N/A N/A N/A N/A N/A
d
i
convertit 'entier décimal' une signature dans le style [-] dddd .
Original:
converts a signed decimal integer in the style [-]dddd.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à apparaître. La précision par défaut est 1.
Original:
Precision specifies the minimum number of digits to appear. The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
signed char
signed short
signed int
signed long
signed long long
N/A
o
convertit un signé 'entier octal' dans le style [-] oooo .
Original:
converts a signed octal integer in the style [-]oooo.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à apparaître. La précision par défaut est 1 .
Original:
Precision specifies the minimum number of digits to appear. The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' précision est augmentée si nécessaire, pour écrire une zéros .
Original:
In the alternative implementation precision is increased if necessary, to write one leading zero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans ce cas, si les deux la valeur convertie et la précision sont 0, 0 unique est écrit .
Original:
In that case if both the converted value and the precision are 0, single 0 is written.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A
x
X
convertit 'entier hexadécimal' une signature dans le style [-] hhhh .
Original:
converts a signed hexadecimal integer in the style [-]hhhh.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour les lettres de conversion x abcdef sont used.
Original:
For the x conversion letters abcdef are used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour les lettres de conversion X ABCDEF sont used.
Original:
For the X conversion letters ABCDEF are used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à apparaître. La précision par défaut est 1 .
Original:
Precision specifies the minimum number of digits to appear. The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' 0x ou 0X est préfixé à des résultats si la valeur convertie est différent de zéro .
Original:
In the alternative implementation 0x or 0X is prefixed to results if the converted value is nonzero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A
u
convertit un 'entier non signé décimal dans le style' dddd .
Original:
converts an unsigned decimal integer in the style dddd.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à paraître .
Original:
Precision specifies the minimum number of digits to appear.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut est 1 .
Original:
The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unsigned char
unsigned short
unsigned int
unsigned long
unsigned long long
N/A
f
F
convertit 'nombre à virgule flottante' pour la notation décimale dans le style [-] ddd.ddd .
Original:
converts floating-point number to the decimal notation in the style [-]ddd.ddd.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
' Précision spécifie le nombre minimal de chiffres après le séparateur décimale .
Original:
Precision specifies the minimum number of digits to appear after the decimal point character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut est 6 .
Original:
The default precision is 6.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' point décimal est écrit, même si aucun chiffre ne le suit .
Original:
In the alternative implementation decimal point character is written even if no digits follow it.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A
double
double
N/A N/A N/A N/A
long double
e
E
convertit nombre à virgule flottante »à la notation d'exposant décimal .
Original:
converts floating-point number' to the decimal exponent notation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion e [-] d.ddd' e ± dd est used.
Original:
For the e conversion style [-]d.ddde±dd is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion E [-] d.ddd' E ± dd est used.
Original:
For the E conversion style [-]d.dddE±dd is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Celui-ci contient au moins deux chiffres, d'autres chiffres ne sont utilisés que si nécessaire .
Original:
The exponent contains at least two digits, more digits are used only if necessary.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si la valeur est 0, l'exposant est également 0 .
Original:
If the value is 0, the exponent is also 0.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
' Précision spécifie le nombre minimal de chiffres après le séparateur décimale .
Original:
Precision specifies the minimum number of digits to appear after the decimal point character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut est 6 .
Original:
The default precision is 6.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' point décimal est écrit, même si aucun chiffre ne le suit .
Original:
In the alternative implementation decimal point character is written even if no digits follow it.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A N/A N/A N/A N/A
a
A
convertit nombre à virgule flottante »à la notation hexadécimale exposant .
Original:
converts floating-point number' to the hexadecimal exponent notation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion a [-]' 0x h.hhh' p ± d est used.
Original:
For the a conversion style [-]0xh.hhhp±d is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion A [-]' 0X h.hhh' P ± d est used.
Original:
For the A conversion style [-]0Xh.hhhP±d is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le chiffre hexadécimal premier est 0 si l'argument n'est pas une valeur en virgule flottante normalisée .
Original:
The first hexadecimal digit is 0 if the argument is not a normalized floating point value.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si la valeur est 0, l'exposant est également 0 .
Original:
If the value is 0, the exponent is also 0.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
' Précision spécifie le nombre minimal de chiffres après le séparateur décimale .
Original:
Precision specifies the minimum number of digits to appear after the decimal point character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut suffit pour une représentation exacte de la valeur .
Original:
The default precision is sufficient for exact representation of the value.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' point décimal est écrit, même si aucun chiffre ne le suit .
Original:
In the alternative implementation decimal point character is written even if no digits follow it.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A N/A N/A N/A N/A
g
G
convertit 'nombre à virgule flottante en notation décimale ou exposant décimal en fonction de la valeur et de la précision' .
Original:
converts floating-point number to decimal or decimal exponent notation depending on the value and the precision.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour la conversion de style g conversion avec e style ou f sera performed.
Original:
For the g conversion style conversion with style e or f will be performed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour la conversion de style G conversion avec E style ou F sera performed.
Original:
For the G conversion style conversion with style E or F will be performed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Laissez P égale à la précision si différente de zéro, 6 si la précision n'est pas spécifiée, ou 1 si la précision est 0. Ensuite, si une conversion avec le style E aurait un exposant de X:
Original:
Let P equal the precision if nonzero, 6 if the precision is not specified, or 1 if the precision is 0. Then, if a conversion with style E would have an exponent of X:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • si P> X ≥ -4, la conversion est de style f ou F et la précision P - 1 - X .
    Original:
    if P > X ≥ −4, the conversion is with style f or F and precision P − 1 − X.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • autrement, la conversion est de style e ou E et la précision P - 1 .
    Original:
    otherwise, the conversion is with style e or E and precision P − 1.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
Sauf' représentation alternative est demandé aux zéros de fin sont supprimés, aussi le point décimal est supprimée si aucune partie fractionnaire est laissée .
Original:
Unless alternative representation is requested the trailing zeros are removed, also the decimal point character is removed if no fractional part is left.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A N/A N/A N/A N/A
n
renvoie 'nombre de caractères écrits l'jusqu'ici par cet appel à la fonction .
Original:
returns the number of characters written' so far by this call to the function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le résultat est' écrit à la valeur pointée par l'argument .
Original:
The result is written to the value pointed to by the argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La spécification complète doit être %n .
Original:
The complete specification must be %n.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A int* N/A N/A N/A N/A N/A N/A
p writes an implementation defined character sequence defining a pointer. N/A N/A void* N/A N/A N/A N/A N/A N/A
'Note':
Original:
Notes:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les fonctions de conversion de points flottants convertir l'infini à inf ou infinity. Lequel est utilisé est defined.
mise en œuvre
Original:
The floating point conversion functions convert infinity to inf or infinity. Which one is used is implementation defined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pas-un-nombre est converti en nan ou nan(char_sequence). Lequel est utilisé est defined.
mise en œuvre
Original:
Not-a-number is converted to nan or nan(char_sequence). Which one is used is implementation defined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les conversions F, E, G, A sortie INF, INFINITY, NAN la place .
Original:
The conversions F, E, G, A output INF, INFINITY, NAN instead.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Original:
pointer to a null-terminated character string specifying how to interpret the data.
La chaîne de format est constitué de caractères blancs, caractère non blanc (sauf %) et les spécifications de conversion. Chaque spécification de conversion a le format suivant:
Original:
The format string consists of whitespace characters, non-whitespace characters (except %) and conversion specifications. Each conversion specification has the following format:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • % caractère introductif
    Original:
    introductory % character
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (en option) une ou plusieurs indicateurs qui modifient le comportement de la conversion:
    Original:
    (en option) one or more flags that modify the behavior of the conversion:
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • -: le résultat de la conversion est justifié à gauche dans le champ (par défaut, il est justifié à droite)
    Original:
    -: the result of the conversion is left-justified within the field (by default it is right-justified)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • +: le signe de conversions signé est toujours ajouté au résultat de la conversion (par défaut le résultat est précédée par moins que si elle est négative)
    Original:
    +: the sign of signed conversions is always prepended to the result of the conversion (by default the result is preceded by minus only when it is negative)
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Espace: si le résultat d'une conversion signée ne commence pas par un caractère de signe, ou est vide, l'espace est ajouté au résultat. Il est ignoré si l'indicateur + est présent .
    Original:
    space: if the result of a signed conversion does not start with a sign character, or is empty, space is prepended to the result. It is ignored if + flag is present.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • #:' autre forme de la conversion est effectuée. Voir le tableau ci-dessous pour effets exacts .
    Original:
    # : alternative form of the conversion is performed. See the table below for exact effects.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • 0: pour nombres entiers et décimaux conversions nombre de points, des zéros sont utilisés pour remplir le champ au lieu de l'espace' caractères. Pour les nombres à virgule flottante, elle est ignorée si la précision est explicitement spécifié. Pour les autres conversions en utilisant ces résultats pavillon à un comportement indéfini. Il est ignoré si l'indicateur - est présent .
    Original:
    0 : for integer and floating point number conversions, leading zeros are used to pad the field instead of space characters. For floating point numbers it is ignored if the precision is explicitly specified. For other conversions using this flag results in undefined behavior. It is ignored if - flag is present.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Valeur (en option) entier ou * qui spécifie la largeur de champ minimale. Le résultat est rembourré avec de l'espace' caractères (par défaut), le cas échéant, sur la gauche lorsque justifié à droite, ou sur la droite si justifié à gauche. Dans le cas où on utilise *, la largeur est spécifiée par un argument supplémentaire de int type. Si la valeur de l'argument est négatif, il en résulte de la largeur - drapeau champ spécifié et positif .
    Original:
    (en option) integer value or * that specifies minimum field width. The result is padded with space characters (by default), if required, on the left when right-justified, or on the right if left-justified. In the case when * is used, the width is specified by an additional argument of type int. If the value of the argument is negative, it results with the - flag specified and positive field width.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (en option) . suivie par nombre entier ou * qui spécifie' précision de la conversion. Dans le cas où * est utilisé, la précision' est spécifiée par un argument supplémentaire de int type. Si la valeur de cet argument est négatif, il est ignoré. Voir le tableau ci-dessous pour les effets exacts de précision' .
    Original:
    (en option) . followed by integer number or * that specifies precision of the conversion. In the case when * is used, the precision is specified by an additional argument of type int. If the value of this argument is negative, it is ignored. See the table below for exact effects of precision.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • (en option)' modificateur de longueur qui spécifie la taille de l'argument
    Original:
    (en option) length modifier that specifies the size of the argument
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • le format spécificateur de conversion
    Original:
    conversion format specifier
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
Les spécificateurs de format suivants sont disponibles:
Original:
The following format specifiers are available:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversion
specifier
Explanation Argument type
length modifier hh h (none) l ll j z t L
% writes literal %. The full conversion specification must be %%. N/A N/A N/A N/A N/A N/A N/A N/A N/A
c writes a single character N/A N/A char wchar_t N/A N/A N/A N/A N/A
s writes a character string N/A N/A char* wchar_t* N/A N/A N/A N/A N/A
d
i
convertit 'entier décimal' une signature dans le style [-] dddd .
Original:
converts a signed decimal integer in the style [-]dddd.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à apparaître. La précision par défaut est 1.
Original:
Precision specifies the minimum number of digits to appear. The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
signed char
signed short
signed int
signed long
signed long long
N/A
o
convertit un signé 'entier octal' dans le style [-] oooo .
Original:
converts a signed octal integer in the style [-]oooo.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à apparaître. La précision par défaut est 1 .
Original:
Precision specifies the minimum number of digits to appear. The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' précision est augmentée si nécessaire, pour écrire une zéros .
Original:
In the alternative implementation precision is increased if necessary, to write one leading zero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans ce cas, si les deux la valeur convertie et la précision sont 0, 0 unique est écrit .
Original:
In that case if both the converted value and the precision are 0, single 0 is written.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A
x
X
convertit 'entier hexadécimal' une signature dans le style [-] hhhh .
Original:
converts a signed hexadecimal integer in the style [-]hhhh.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour les lettres de conversion x abcdef sont used.
Original:
For the x conversion letters abcdef are used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour les lettres de conversion X ABCDEF sont used.
Original:
For the X conversion letters ABCDEF are used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à apparaître. La précision par défaut est 1 .
Original:
Precision specifies the minimum number of digits to appear. The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' 0x ou 0X est préfixé à des résultats si la valeur convertie est différent de zéro .
Original:
In the alternative implementation 0x or 0X is prefixed to results if the converted value is nonzero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A
u
convertit un 'entier non signé décimal dans le style' dddd .
Original:
converts an unsigned decimal integer in the style dddd.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Précision' spécifie le nombre minimal de chiffres à paraître .
Original:
Precision specifies the minimum number of digits to appear.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut est 1 .
Original:
The default precision is 1.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si les deux la valeur convertie et la précision sont 0 les résultats de la conversion dans aucun des caractères .
Original:
If both the converted value and the precision are 0 the conversion results in no characters.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unsigned char
unsigned short
unsigned int
unsigned long
unsigned long long
N/A
f
F
convertit 'nombre à virgule flottante' pour la notation décimale dans le style [-] ddd.ddd .
Original:
converts floating-point number to the decimal notation in the style [-]ddd.ddd.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
' Précision spécifie le nombre minimal de chiffres après le séparateur décimale .
Original:
Precision specifies the minimum number of digits to appear after the decimal point character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut est 6 .
Original:
The default precision is 6.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' point décimal est écrit, même si aucun chiffre ne le suit .
Original:
In the alternative implementation decimal point character is written even if no digits follow it.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A
double
double
N/A N/A N/A N/A
long double
e
E
convertit nombre à virgule flottante »à la notation d'exposant décimal .
Original:
converts floating-point number' to the decimal exponent notation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion e [-] d.ddd' e ± dd est used.
Original:
For the e conversion style [-]d.ddde±dd is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion E [-] d.ddd' E ± dd est used.
Original:
For the E conversion style [-]d.dddE±dd is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Celui-ci contient au moins deux chiffres, d'autres chiffres ne sont utilisés que si nécessaire .
Original:
The exponent contains at least two digits, more digits are used only if necessary.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si la valeur est 0, l'exposant est également 0 .
Original:
If the value is 0, the exponent is also 0.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
' Précision spécifie le nombre minimal de chiffres après le séparateur décimale .
Original:
Precision specifies the minimum number of digits to appear after the decimal point character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut est 6 .
Original:
The default precision is 6.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' point décimal est écrit, même si aucun chiffre ne le suit .
Original:
In the alternative implementation decimal point character is written even if no digits follow it.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A N/A N/A N/A N/A
a
A
convertit nombre à virgule flottante »à la notation hexadécimale exposant .
Original:
converts floating-point number' to the hexadecimal exponent notation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion a [-]' 0x h.hhh' p ± d est used.
Original:
For the a conversion style [-]0xh.hhhp±d is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion A [-]' 0X h.hhh' P ± d est used.
Original:
For the A conversion style [-]0Xh.hhhP±d is used.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le chiffre hexadécimal premier est 0 si l'argument n'est pas une valeur en virgule flottante normalisée .
Original:
The first hexadecimal digit is 0 if the argument is not a normalized floating point value.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si la valeur est 0, l'exposant est également 0 .
Original:
If the value is 0, the exponent is also 0.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
' Précision spécifie le nombre minimal de chiffres après le séparateur décimale .
Original:
Precision specifies the minimum number of digits to appear after the decimal point character.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La précision par défaut suffit pour une représentation exacte de la valeur .
Original:
The default precision is sufficient for exact representation of the value.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dans la variante de réalisation' point décimal est écrit, même si aucun chiffre ne le suit .
Original:
In the alternative implementation decimal point character is written even if no digits follow it.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A N/A N/A N/A N/A
g
G
convertit 'nombre à virgule flottante en notation décimale ou exposant décimal en fonction de la valeur et de la précision' .
Original:
converts floating-point number to decimal or decimal exponent notation depending on the value and the precision.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour la conversion de style g conversion avec e style ou f sera performed.
Original:
For the g conversion style conversion with style e or f will be performed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour la conversion de style G conversion avec E style ou F sera performed.
Original:
For the G conversion style conversion with style E or F will be performed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Laissez P égale à la précision si différente de zéro, 6 si la précision n'est pas spécifiée, ou 1 si la précision est 0. Ensuite, si une conversion avec le style E aurait un exposant de X:
Original:
Let P equal the precision if nonzero, 6 if the precision is not specified, or 1 if the precision is 0. Then, if a conversion with style E would have an exponent of X:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • si P> X ≥ -4, la conversion est de style f ou F et la précision P - 1 - X .
    Original:
    if P > X ≥ −4, the conversion is with style f or F and precision P − 1 − X.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • autrement, la conversion est de style e ou E et la précision P - 1 .
    Original:
    otherwise, the conversion is with style e or E and precision P − 1.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
Sauf' représentation alternative est demandé aux zéros de fin sont supprimés, aussi le point décimal est supprimée si aucune partie fractionnaire est laissée .
Original:
Unless alternative representation is requested the trailing zeros are removed, also the decimal point character is removed if no fractional part is left.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pour le style de conversion de l'infini et not-a-number voir notes .
Original:
For infinity and not-a-number conversion style see notes.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A N/A N/A N/A N/A
n
renvoie 'nombre de caractères écrits l'jusqu'ici par cet appel à la fonction .
Original:
returns the number of characters written' so far by this call to the function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le résultat est' écrit à la valeur pointée par l'argument .
Original:
The result is written to the value pointed to by the argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La spécification complète doit être %n .
Original:
The complete specification must be %n.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
N/A N/A int* N/A N/A N/A N/A N/A N/A
p writes an implementation defined character sequence defining a pointer. N/A N/A void* N/A N/A N/A N/A N/A N/A
'Note':
Original:
Notes:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les fonctions de conversion de points flottants convertir l'infini à inf ou infinity. Lequel est utilisé est defined.
mise en œuvre
Original:
The floating point conversion functions convert infinity to inf or infinity. Which one is used is implementation defined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pas-un-nombre est converti en nan ou nan(char_sequence). Lequel est utilisé est defined.
mise en œuvre
Original:
Not-a-number is converted to nan or nan(char_sequence). Which one is used is implementation defined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les conversions F, E, G, A sortie INF, INFINITY, NAN la place .
Original:
The conversions F, E, G, A output INF, INFINITY, NAN instead.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
vlist -
liste d'arguments variable contenant les données à imprimer
Original:
variable argument list containing the data to print
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Retourne la valeur

1-3)
nombre de caractères écrits si la valeur réussie ou négatif si une erreur est survenue .
Original:
number of characters written if successful or negative value if an error occurred.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
nombre de caractères écrits si la valeur réussie ou négatif si une erreur s'est produite. Si la chaîne résultante est tronquée en raison de la limite buf_size, la fonction retourne le nombre total de caractères (sans compter le zéro-octet de terminaison) qui aurait été écrite, si la limite n'a pas été imposée .
Original:
number of characters written if successful or negative value if an error occurred. If the resulting string gets truncated due to buf_size limit, function returns the total number of characters (not including the terminating null-byte) which would have been written, if the limit was not imposed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifier] Exemple

[modifier] Voir aussi

impressions en forme de sortie de stdout, un flux de fichier ou d'un tampon
Original:
prints formatted output to stdout, a file stream or a buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]
(C99)
(C99)
(C99)
lit l'entrée en forme à partir stdin, un flux ou un fichier en utilisant buffer
liste d'arguments variable
Original:
reads formatted input from stdin, a file stream or a buffer
using variable argument list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]
C++ documentation for vprintf, vfprintf, vsprintf, vsnprintf