| format
|
-
|
puntatore ad una stringa con terminazione null carattere che specifica come leggere l'input.
La stringa di formato è composto da caratteri di spaziatura (un singolo carattere spazio nella stringa di formato consuma tutte disponibili spazi successivi dall'ingresso), caratteri diversi da spazi ad eccezione % (ogni carattere ad esempio nelle stringhe di formato consuma esattamente un carattere identico dall'ingresso) e specifiche di conversione. Ogni specifica di conversione ha il seguente formato: Original: The format string consists of whitespace characters (any single whitespace character in the format string consumes all available consecutive whitespace characters from the input), non-whitespace characters except % (each such character in the format strings consumes exactly one identical character from the input) 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) assegnazione di soppressione * carattere. Se questa opzione è presente, la funzione non assegnare il risultato della conversione a qualsiasi argomento di ricezione. Original: (opzionale) assignment-suppressing character *. If this option is present, the function does not assign the result of the conversion to any receiving argument. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
(opzionale) intero numero (maggiore di zero) che specifica' massima larghezza del campo, cioè, il numero massimo di caratteri che la funzione è consentito consumare quando si fa la conversione specificata dalla specifica di conversione corrente. Si noti che [% s e% può portare a overflow del buffer se la larghezza non è previsto.Original: (opzionale) integer number (greater than zero) that specifies maximum field width, that is, the maximum number of characters that the function is allowed to consume when doing the conversion specified by the current conversion specification. Note that %s and %[ may lead to buffer overflow if the width is not provided. 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 ricevente, cioè il tipo di destinazione effettiva. Questo influenza la precisione della conversione e le regole di overflow. Il tipo di destinazione predefinita è diversa per ogni tipo di conversione (vedi tabella sotto).Original: (opzionale) length modifier that specifies the size of the receiving argument, that is, the actual destination type. This affects the conversion accuracy and overflow rules. The default destination type is different for each conversion type (see table below). 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
|
%
|
matches literal %
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
c
|
matches a single character
|
N/A
|
N/A
|
|
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
s
|
matches a character string (a sequence of non-whitespace characters)
|
[set]
|
corrisponde a una sequenza non vuota di carattere dal set di personaggi. Original: matches a non-empty sequence of character from set of characters. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Se il primo carattere del set è ^, quindi non tutti i caratteri del set sono abbinati. Se il set inizia con ] o ^] poi il carattere ] è anche incluso nel set. Original: If the first character of the set is ^, then all characters not in the set are matched. If the set begins with ] or ^] then the ] character is also included into the set. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
d
|
corrisponde a intero decimale' un.Original: matches a decimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 10 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtol() with the value 10 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
signed char* or unsigned char*
|
signed short* or unsigned short*
|
signed int* or unsigned int*
|
signed long* or unsigned long*
|
signed long long* or unsigned long long*
|
|
|
|
N/A
|
i
|
corrisponde a intero decimale' un.Original: matches a decimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 0 con il valore per l'argomento base Original: The format of the number is the same as expected by strtol() with the value 0 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
u
|
corrisponde a un intero decimale senza segno'. Original: matches a unsigned decimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtoul() 0 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtoul() with the value 0 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
o
|
corrisponde a un 'ottale intero'. Original: matches an octal integer. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 8 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtol() with the value 8 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
x
|
corrisponde a esadecimale intero' un.Original: matches an hexadecimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 16 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtol() with the value 16 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
n
|
restituisce 'il numero di caratteri letti fino ad ora' la. Original: returns the number of characters read so far. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Nessun input viene consumato. Non incrementare il numero di assegnazione. Se l'identificatore è assegnazione di soppressione operatore definito, il comportamento è indefinito Original: No input is consumed. Does not increment the assignment count. If the specifier has assignment-suppressing operator defined, the behavior is undefined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
a, A e, E f, F g, G
|
corrisponde a un 'numero in virgola mobile'. Original: matches a floating-point number. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtof()Original: The format of the number is the same as expected by strtof()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
|
|
p
|
corrisponde sequenza di caratteri attuazione definito la definizione di un 'puntatore'. Original: matches implementation defined character sequence defining a pointer. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Famiglia printf delle funzioni dovrebbe produrre la stessa sequenza utilizzando il formato %p identificatore Original: printf family of functions should produce the same sequence using %p format specifier
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/A
|
N/A
|
Original: pointer to a null-terminated character string specifying how to read the input.
La stringa di formato è composto da caratteri di spaziatura (un singolo carattere spazio nella stringa di formato consuma tutte disponibili spazi successivi dall'ingresso), caratteri diversi da spazi ad eccezione % (ogni carattere ad esempio nelle stringhe di formato consuma esattamente un carattere identico dall'ingresso) e specifiche di conversione. Ogni specifica di conversione ha il seguente formato: Original: The format string consists of whitespace characters (any single whitespace character in the format string consumes all available consecutive whitespace characters from the input), non-whitespace characters except % (each such character in the format strings consumes exactly one identical character from the input) 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) assegnazione di soppressione * carattere. Se questa opzione è presente, la funzione non assegnare il risultato della conversione a qualsiasi argomento di ricezione. Original: (opzionale) assignment-suppressing character *. If this option is present, the function does not assign the result of the conversion to any receiving argument. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
(opzionale) intero numero (maggiore di zero) che specifica' massima larghezza del campo, cioè, il numero massimo di caratteri che la funzione è consentito consumare quando si fa la conversione specificata dalla specifica di conversione corrente. Si noti che [% s e% può portare a overflow del buffer se la larghezza non è previsto.Original: (opzionale) integer number (greater than zero) that specifies maximum field width, that is, the maximum number of characters that the function is allowed to consume when doing the conversion specified by the current conversion specification. Note that %s and %[ may lead to buffer overflow if the width is not provided. 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 ricevente, cioè il tipo di destinazione effettiva. Questo influenza la precisione della conversione e le regole di overflow. Il tipo di destinazione predefinita è diversa per ogni tipo di conversione (vedi tabella sotto).Original: (opzionale) length modifier that specifies the size of the receiving argument, that is, the actual destination type. This affects the conversion accuracy and overflow rules. The default destination type is different for each conversion type (see table below). 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
|
%
|
matches literal %
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
c
|
matches a single character
|
N/A
|
N/A
|
|
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
s
|
matches a character string (a sequence of non-whitespace characters)
|
[set]
|
corrisponde a una sequenza non vuota di carattere dal set di personaggi. Original: matches a non-empty sequence of character from set of characters. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Se il primo carattere del set è ^, quindi non tutti i caratteri del set sono abbinati. Se il set inizia con ] o ^] poi il carattere ] è anche incluso nel set. Original: If the first character of the set is ^, then all characters not in the set are matched. If the set begins with ] or ^] then the ] character is also included into the set. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
d
|
corrisponde a intero decimale' un.Original: matches a decimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 10 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtol() with the value 10 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
signed char* or unsigned char*
|
signed short* or unsigned short*
|
signed int* or unsigned int*
|
signed long* or unsigned long*
|
signed long long* or unsigned long long*
|
|
|
|
N/A
|
i
|
corrisponde a intero decimale' un.Original: matches a decimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 0 con il valore per l'argomento base Original: The format of the number is the same as expected by strtol() with the value 0 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
u
|
corrisponde a un intero decimale senza segno'. Original: matches a unsigned decimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtoul() 0 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtoul() with the value 0 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
o
|
corrisponde a un 'ottale intero'. Original: matches an octal integer. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 8 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtol() with the value 8 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
x
|
corrisponde a esadecimale intero' un.Original: matches an hexadecimal integer'. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtol() 16 con il valore per l'argomento baseOriginal: The format of the number is the same as expected by strtol() with the value 16 for the base argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
n
|
restituisce 'il numero di caratteri letti fino ad ora' la. Original: returns the number of characters read so far. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Nessun input viene consumato. Non incrementare il numero di assegnazione. Se l'identificatore è assegnazione di soppressione operatore definito, il comportamento è indefinito Original: No input is consumed. Does not increment the assignment count. If the specifier has assignment-suppressing operator defined, the behavior is undefined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|
a, A e, E f, F g, G
|
corrisponde a un 'numero in virgola mobile'. Original: matches a floating-point number. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Il formato del numero è uguale a quello previsto dal strtof()Original: The format of the number is the same as expected by strtof()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
|
|
p
|
corrisponde sequenza di caratteri attuazione definito la definizione di un 'puntatore'. Original: matches implementation defined character sequence defining a pointer. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
Famiglia printf delle funzioni dovrebbe produrre la stessa sequenza utilizzando il formato %p identificatore Original: printf family of functions should produce the same sequence using %p format specifier
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/A
|
N/A
|
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions.
|