Namespace
Varianti

vprintf, vfprintf, vsprintf, vsnprintf

Da cppreference.com.
< c‎ | io

 
 
File input/output
Funzioni
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Accesso ai file
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.
Diretta input / output
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
Ingresso formattato / uscita
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.
Formattato di input / output
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)
File di posizionamento
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
La gestione degli errori
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
Le operazioni sui file
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)
Carica i dati delle posizioni, definite dal vlist, li converte in stringhe di caratteri equivalenti e scrive i risultati di una serie di pozzi di assorbimento.
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)
Scrive i risultati 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)
Scrive i risultati in un stream flusso di file.
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)
Scrive i risultati in un buffer stringa di caratteri.
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)
Scrive i risultati in un buffer stringa di caratteri. Alla maggior parte dei caratteri buf_size sono scritti. La stringa di caratteri risultante viene terminata con un carattere null, a meno che buf_size è pari a zero.
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.

Indice

[modifica] Parametri

stream -
file di flusso di output per scrivere
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 -
puntatore a una stringa di caratteri da scrivere
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 -
il numero massimo di caratteri da scrivere
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 -
puntatore ad una stringa con terminazione null carattere che specifica come interpretare i dati.
La stringa di formato è composto da spazi bianchi, caratteri diversi da spazi (ad eccezione %) e le specifiche di conversione. Ogni specifica di conversione ha il seguente formato:
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.
  • % carattere introduttivo
    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.
  • (opzionale) uno o più flag che modificano il comportamento della conversione:
    Original:
    (opzionale) 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.
  • -: il risultato della conversione viene allineato a sinistra nel campo (per impostazione predefinita è allineato a destra)
    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.
  • +: il segno di conversioni firmati è sempre anteporre al risultato della conversione (per default il risultato è preceduto da meno solo quando è negativo)
    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.
  • Spazio: se il risultato di una conversione firmato non inizia con un carattere di segno, o è vuoto, lo spazio viene anteposto al risultato. Viene ignorato se + bandiera è presente.
    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.
  • #: forma alternativa della conversione viene eseguita. Vedere la tabella sottostante per gli effetti esatti.
    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: per le conversioni interi e virgola mobile il numero, gli zeri iniziali vengono utilizzati per riempire il campo al posto dello spazio personaggi. Per i numeri in virgola mobile viene ignorato se la precisione è specificato in modo esplicito. Per le conversioni che utilizzano questo si traduce in un comportamento indefinito bandiera. Viene ignorato se - bandiera è presente.
    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.
  • (opzionale) valore intero o * che specifica larghezza minima del campo. Il risultato è imbottito con lo spazio personaggi (per impostazione predefinita), se richiesto, a sinistra quando giustificato a destra, o sulla destra se allineato a sinistra. Nel caso in cui viene utilizzato *, la larghezza viene specificato da un ulteriore argomento di int tipo. Se il valore dell'argomento è negativo, risulta con la larghezza - campo flag specificato e positivo.
    Original:
    (opzionale) 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.
  • (opzionale) . seguito da un numero intero o * che specifica la precisione' della conversione. Nel caso in cui viene utilizzato *, la precisione' è specificato da un ulteriore argomento di int tipo. Se il valore di questo argomento è negativo, viene ignorato. Vedere la tabella sottostante per gli effetti esatti di precisione'.
    Original:
    (opzionale) . 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.
  • (opzionale) lunghezza' modificatore che specifica la dimensione dell'argomento
    Original:
    (opzionale) 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.
  • conversione di formato
    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.
Gli identificatori di formato sono disponibili i seguenti:
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
converte 'intero decimale' a firmato in stile [-] 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.
Precisione' specifica il numero minimo di cifre da visualizzare. La precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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
converte un firmato 'ottale intero' in stile [-] 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.
Precisione' specifica il numero minimo di cifre da visualizzare. La precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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.
Nella implementazione alternativa' precisione viene aumentata se necessario, per scrivere uno zero.
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.
In tal caso, se sia il valore convertito e la precisione sono 0, 0 singolo è scritto.
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
converte 'intero esadecimale' a firmato in stile [-] 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.
Per le lettere di conversione di x abcdef sono 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.
Per le lettere di conversione di X ABCDEF sono 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.
Precisione' specifica il numero minimo di cifre da visualizzare. La precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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.
Nella implementazione alternativa' 0x o 0X è prefisso risultati se il valore convertito è diverso da zero.
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
converte 'intero decimale senza segno' un in stile 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.
Precisione' specifica il numero minimo di cifre da visualizzare.
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 precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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
converte 'numero in virgola mobile' per la notazione decimale in stile [-] 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.
Precisione specifica il numero minimo di cifre da visualizzare dopo il carattere punto decimale.
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 precisione di default è 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.
Nella implementazione alternativa' carattere separatore decimale è scritto anche se non lo seguono cifre.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
converte 'virgola mobile Numero' per la notazione decimale esponente.
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.
Per lo stile di conversione e [-] d.ddd e' è ± gg 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.
Per lo stile di conversione E [-] d.ddd E' è ± gg 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.
L'esponente contiene almeno due cifre, vengono utilizzati più di tre cifre solo se necessario.
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.
Se il valore è 0, l'esponente è anche 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.
Precisione specifica il numero minimo di cifre da visualizzare dopo il carattere punto decimale.
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 precisione di default è 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.
Nella implementazione alternativa' carattere separatore decimale è scritto anche se non lo seguono cifre.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
converte 'virgola mobile Numero' per la notazione esadecimale esponente.
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.
Per lo stile di conversione a [-] 0x' h.hhh p ± d è 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.
Per lo stile di conversione A [-] 0X' h.hhh P ± d è 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.
La cifra esadecimale prima 0 se l'argomento non è un valore in virgola mobile normalizzato.
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.
Se il valore è 0, l'esponente è anche 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.
Precisione specifica il numero minimo di cifre da visualizzare dopo il carattere punto decimale.
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 precisione di default è sufficiente per la rappresentazione esatta del valore di.
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.
Nella implementazione alternativa' carattere separatore decimale è scritto anche se non lo seguono cifre.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
converte 'numero in virgola mobile esponente decimale alla notazione decimale o in base al valore e la precisione'.
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.
Per la conversione di stile di conversione g con e stile o f sarà performed.
essere
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.
Per la conversione di stile di conversione G con E stile o F sarà performed.
essere
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.
Lasciate P uguale la precisione, se diverso da zero, 6 se la precisione non è specificato o 1 se la precisione è 0. Poi, se una conversione con E stile avrebbe un esponente di 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.
  • se P> X ≥ -4, la conversione è con stile f o F e precisione 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.
  • altrimenti, la conversione è con stile e o E e precisione 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.
A meno che rappresentazione alternativa è richiesto gli zeri finali vengono rimossi, anche il carattere separatore decimale viene rimosso se non parte frazionaria è lasciato.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
restituisce 'il numero di caratteri scritti' la finora da questa chiamata alla funzione.
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.
Il risultato è' scritto con il valore a cui punta l'argomento.
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.
L'intera specifica deve essere %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
'Nota:'
Original:
Notes:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
I galleggianti funzioni di conversione punto convertire infinito a inf o infinity. Qual è usato è defined.
attuazione
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.
Not-a-numero viene convertito in nan o nan(char_sequence). Qual è usato è defined.
attuazione
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.
Le conversioni F, E, G, A uscita INF, INFINITY, NAN invece.
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 stringa di formato è composto da spazi bianchi, caratteri diversi da spazi (ad eccezione %) e le specifiche di conversione. Ogni specifica di conversione ha il seguente formato:
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.
  • % carattere introduttivo
    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.
  • (opzionale) uno o più flag che modificano il comportamento della conversione:
    Original:
    (opzionale) 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.
  • -: il risultato della conversione viene allineato a sinistra nel campo (per impostazione predefinita è allineato a destra)
    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.
  • +: il segno di conversioni firmati è sempre anteporre al risultato della conversione (per default il risultato è preceduto da meno solo quando è negativo)
    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.
  • Spazio: se il risultato di una conversione firmato non inizia con un carattere di segno, o è vuoto, lo spazio viene anteposto al risultato. Viene ignorato se + bandiera è presente.
    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.
  • #: forma alternativa della conversione viene eseguita. Vedere la tabella sottostante per gli effetti esatti.
    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: per le conversioni interi e virgola mobile il numero, gli zeri iniziali vengono utilizzati per riempire il campo al posto dello spazio personaggi. Per i numeri in virgola mobile viene ignorato se la precisione è specificato in modo esplicito. Per le conversioni che utilizzano questo si traduce in un comportamento indefinito bandiera. Viene ignorato se - bandiera è presente.
    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.
  • (opzionale) valore intero o * che specifica larghezza minima del campo. Il risultato è imbottito con lo spazio personaggi (per impostazione predefinita), se richiesto, a sinistra quando giustificato a destra, o sulla destra se allineato a sinistra. Nel caso in cui viene utilizzato *, la larghezza viene specificato da un ulteriore argomento di int tipo. Se il valore dell'argomento è negativo, risulta con la larghezza - campo flag specificato e positivo.
    Original:
    (opzionale) 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.
  • (opzionale) . seguito da un numero intero o * che specifica la precisione' della conversione. Nel caso in cui viene utilizzato *, la precisione' è specificato da un ulteriore argomento di int tipo. Se il valore di questo argomento è negativo, viene ignorato. Vedere la tabella sottostante per gli effetti esatti di precisione'.
    Original:
    (opzionale) . 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.
  • (opzionale) lunghezza' modificatore che specifica la dimensione dell'argomento
    Original:
    (opzionale) 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.
  • conversione di formato
    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.
Gli identificatori di formato sono disponibili i seguenti:
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
converte 'intero decimale' a firmato in stile [-] 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.
Precisione' specifica il numero minimo di cifre da visualizzare. La precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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
converte un firmato 'ottale intero' in stile [-] 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.
Precisione' specifica il numero minimo di cifre da visualizzare. La precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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.
Nella implementazione alternativa' precisione viene aumentata se necessario, per scrivere uno zero.
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.
In tal caso, se sia il valore convertito e la precisione sono 0, 0 singolo è scritto.
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
converte 'intero esadecimale' a firmato in stile [-] 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.
Per le lettere di conversione di x abcdef sono 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.
Per le lettere di conversione di X ABCDEF sono 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.
Precisione' specifica il numero minimo di cifre da visualizzare. La precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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.
Nella implementazione alternativa' 0x o 0X è prefisso risultati se il valore convertito è diverso da zero.
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
converte 'intero decimale senza segno' un in stile 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.
Precisione' specifica il numero minimo di cifre da visualizzare.
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 precisione di default è 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.
Se sia il valore convertito e la precisione sono 0 i risultati della conversione in nessun carattere.
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
converte 'numero in virgola mobile' per la notazione decimale in stile [-] 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.
Precisione specifica il numero minimo di cifre da visualizzare dopo il carattere punto decimale.
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 precisione di default è 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.
Nella implementazione alternativa' carattere separatore decimale è scritto anche se non lo seguono cifre.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
converte 'virgola mobile Numero' per la notazione decimale esponente.
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.
Per lo stile di conversione e [-] d.ddd e' è ± gg 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.
Per lo stile di conversione E [-] d.ddd E' è ± gg 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.
L'esponente contiene almeno due cifre, vengono utilizzati più di tre cifre solo se necessario.
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.
Se il valore è 0, l'esponente è anche 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.
Precisione specifica il numero minimo di cifre da visualizzare dopo il carattere punto decimale.
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 precisione di default è 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.
Nella implementazione alternativa' carattere separatore decimale è scritto anche se non lo seguono cifre.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
converte 'virgola mobile Numero' per la notazione esadecimale esponente.
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.
Per lo stile di conversione a [-] 0x' h.hhh p ± d è 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.
Per lo stile di conversione A [-] 0X' h.hhh P ± d è 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.
La cifra esadecimale prima 0 se l'argomento non è un valore in virgola mobile normalizzato.
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.
Se il valore è 0, l'esponente è anche 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.
Precisione specifica il numero minimo di cifre da visualizzare dopo il carattere punto decimale.
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 precisione di default è sufficiente per la rappresentazione esatta del valore di.
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.
Nella implementazione alternativa' carattere separatore decimale è scritto anche se non lo seguono cifre.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
converte 'numero in virgola mobile esponente decimale alla notazione decimale o in base al valore e la precisione'.
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.
Per la conversione di stile di conversione g con e stile o f sarà performed.
essere
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.
Per la conversione di stile di conversione G con E stile o F sarà performed.
essere
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.
Lasciate P uguale la precisione, se diverso da zero, 6 se la precisione non è specificato o 1 se la precisione è 0. Poi, se una conversione con E stile avrebbe un esponente di 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.
  • se P> X ≥ -4, la conversione è con stile f o F e precisione 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.
  • altrimenti, la conversione è con stile e o E e precisione 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.
A meno che rappresentazione alternativa è richiesto gli zeri finali vengono rimossi, anche il carattere separatore decimale viene rimosso se non parte frazionaria è lasciato.
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.
Per la conversione in stile infinito e non-a-number vedere le note.
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
restituisce 'il numero di caratteri scritti' la finora da questa chiamata alla funzione.
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.
Il risultato è' scritto con il valore a cui punta l'argomento.
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.
L'intera specifica deve essere %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
'Nota:'
Original:
Notes:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
I galleggianti funzioni di conversione punto convertire infinito a inf o infinity. Qual è usato è defined.
attuazione
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.
Not-a-numero viene convertito in nan o nan(char_sequence). Qual è usato è defined.
attuazione
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.
Le conversioni F, E, G, A uscita INF, INFINITY, NAN invece.
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 -
elenco degli argomenti variabile contenente i dati da stampare
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.

[modifica] Valore di ritorno

1-3)
numero di caratteri scritti se il valore di esito positivo o negativo in caso di errore.
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)
numero di caratteri scritti se il valore di esito positivo o negativo in caso di errore. Se la stringa risultante viene troncato a causa del limite buf_size, la funzione restituisce il numero totale di caratteri (non compresa la terminazione null-byte), che sarebbe stato scritto, se il limite non è stato imposto.
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.

[modifica] Esempio

[modifica] Vedi anche

stampe formattata uscita stdout, un flusso di file o di un buffer
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.

(funzione) [edit]
(C99)
(C99)
(C99)
legge l'input formattato da stdin, un flusso di file o un buffer
utilizzando elenco di argomenti variabili
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.

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