Namensräume
Varianten
Aktionen

vprintf, vfprintf, vsprintf, vsnprintf

Aus cppreference.com
< c‎ | io

 
 
File input/output
Funktionen
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dateizugriff
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.
Direkte Eingabe / Ausgabe
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
Unformatierte Eingang / Ausgang
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.
Formatierte Eingabe / Ausgabe
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)
Datei Positionierung
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
Fehlerbehandlung
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
Operationen auf Dateien
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)
Lädt die Daten von den Orten durch vlist definiert, wandelt sie in Zeichenkette Äquivalente und schreibt die Ergebnisse an eine Vielzahl von Senken .
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)
Schreibt die Ergebnisse in 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)
Schreibt die Ergebnisse in einem Datei-Stream stream .
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)
Schreibt die Ergebnisse in eine Zeichenfolge buffer .
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)
Schreibt die Ergebnisse in eine Zeichenfolge buffer. An den meisten buf_size Zeichen geschrieben werden. Die resultierende Zeichenkette wird mit einem Null-Zeichen beendet werden, es sei denn, buf_size Null ist .
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.

Inhaltsverzeichnis

[Bearbeiten] Parameter

stream -
Ausgabedatenstrom zu schreiben
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 -
Zeiger auf eine Zeichenkette zu schreiben
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 -
maximale Anzahl von Zeichen zu schreiben
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 -
Zeiger auf einen null-terminierten Zeichenkette angeben, wie die Daten zu interpretieren.
Der Format-String besteht aus Leerzeichen, Nicht-Whitespace-Zeichen (außer %) und Conversion-Spezifikationen. Jede Konvertierung Spezifikation hat das folgende Format:
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.
  • einleitenden % Charakter
    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.
  • (optional) ein oder mehrere Flags, die das Verhalten der Umwandlung zu ändern:
    Original:
    (optional) 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.
  • -: Das Ergebnis der Umwandlung wird innerhalb des Feldes linksbündig (standardmäßig ist es rechtsbündig)
    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.
  • +: das Vorzeichen des unterzeichneten Konvertierungen wird immer dem Ergebnis der Konvertierung vorangestellt (standardmäßig das Ergebnis durch nur minus vorangestellt, wenn es negativ ist)
    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.
  • Raum: wenn das Ergebnis einer vorzeichenbehafteten Umwandlung nicht mit einem Schild Zeichen beginnen, oder leer ist, Raum zu dem Ergebnis, vorangestellt. Es wird ignoriert, wenn + Flag vorhanden ist .
    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.
  • #: alternative Form der Konvertierung durchgeführt. Siehe Tabelle unten für genauen Auswirkungen .
    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: für Integer-und Gleitkomma-Zahl Konvertierungen, führende Nullen werden verwendet, um pad das Feld statt Raum Zeichen. Für Fließkommazahlen wird ignoriert, wenn die Präzision explizit angegeben wird. Für andere Umwandlungen mit dieser Flagge Ergebnisse in undefiniertem Verhalten. Es wird ignoriert, wenn - Flag vorhanden ist .
    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.
  • (optional) ganzzahligen Wert oder * die minimale Feldbreite angibt. Das Ergebnis wird mit Raum Zeichen aufgefüllt (Standard), falls erforderlich, auf der linken Seite, wenn rechtsbündig oder auf der rechten Seite, wenn linksbündig. In dem Fall, wenn * verwendet wird, wird die Breite von einer zusätzlichen Argument des Typs int angegeben. Wenn der Wert des Arguments negativ ist, ergibt sich mit dem - Flagge angegebenen und positiven Feldbreite .
    Original:
    (optional) 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.
  • (optional) . durch ganze Zahl oder * die Präzision der Umwandlung legt gefolgt. In dem Fall, wenn * verwendet wird, wird die Präzision' durch einen zusätzlichen Argument des Typs int angegeben. Wenn der Wert dieses Argument negativ ist, wird es ignoriert. Siehe Tabelle unten für genaue Auswirkungen der Präzision .
    Original:
    (optional) . 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.
  • (optional) Länge Modifizierer, die die Größe des Arguments angibt
    Original:
    (optional) 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.
  • Umwandlung Formatbezeichner
    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.
Die folgenden Formatangaben stehen zur Verfügung:
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
wandelt ein signiertes 'Dezimalzahl' im Stil [-] 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen. Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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
wandelt ein signiertes 'Oktal Integer' im Stil [-] 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen. Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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.
In der alternativen Implementierung' Präzision erhöht wird, wenn erforderlich, einer führenden Null schreiben .
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 diesem Fall, wenn sowohl der konvertierte Wert und die Präzision 0 sind, wird einzelnen 0 geschrieben .
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
wandelt ein signiertes 'hexadezimale Ganzzahl' im Stil [-] 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.
Für die x Umwandlung Briefe abcdef sind 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.
Für die X Umwandlung Briefe ABCDEF sind 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen. Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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.
In der alternative Implementierung 0x oder 0X um Ergebnisse vorangestellt, wenn der konvertierte Wert ungleich Null ist .
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
Konvertiert einen 'vorzeichenlose Dezimalzahl' im Stil 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen .
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.
Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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
wandelt 'Gleitkommazahl' der Dezimalschreibweise im Stil [-] 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.
Precision gibt die minimale Anzahl der Stellen nach dem Komma Zeichen angezeigt werden .
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.
Die Standard-Genauigkeit 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.
In der alternative Implementierung Dezimalzeichen geschrieben, auch wenn ihm keine Ziffern folgen .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
wandelt 'Gleitkommazahl' auf das Dezimalsystem Exponent-Darstellung .
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.
Für die e Umwandlung Stil [-] d.ddd e ± dd ist 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.
Für die E Umwandlung Stil [-] d.ddd E ± dd ist 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.
Der Exponent enthält mindestens zwei Ziffern, mehr Stellen verwendet nur wenn notwendig sind .
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.
Wenn der Wert 0 ist der Exponent auch 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.
Precision gibt die minimale Anzahl der Stellen nach dem Komma Zeichen angezeigt werden .
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.
Die Standard-Genauigkeit 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.
In der alternative Implementierung Dezimalzeichen geschrieben, auch wenn ihm keine Ziffern folgen .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
wandelt 'Gleitkommazahl' der hexadezimalen Exponent-Darstellung .
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.
Für die a Umwandlung Stil [-] 0x h.hhh p ± d ist 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.
Für die A Umwandlung Stil [-] 0X h.hhh P ± d ist 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.
Die erste Hexadezimalziffer ist 0 wenn das Argument nicht eine normalisierte Gleitkommazahl .
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.
Wenn der Wert 0 ist der Exponent auch 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.
Precision gibt die minimale Anzahl der Stellen nach dem Komma Zeichen angezeigt werden .
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.
Die Standard-Genauigkeit ist ausreichend für die exakte Darstellung des Werts .
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.
In der alternative Implementierung Dezimalzeichen geschrieben, auch wenn ihm keine Ziffern folgen .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
wandelt 'Gleitkommazahl' in Dezimalzahlen oder Dezimalzahlen Exponent-Darstellung abhängig vom Wert und der Präzision .
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.
Für die g Umwandlung Stil Umwandlung mit Stil e oder f wird performed.
sein
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.
Für die G Umwandlung Stil Umwandlung mit Stil E oder F wird performed.
sein
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.
Lassen P gleich die Präzision, wenn ungleich Null, 6 wenn die Genauigkeit nicht angegeben ist, oder 1 wenn die Genauigkeit 0. Dann, wenn eine Umwandlung mit Stil E müsste einen Exponenten von 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.
  • wenn P> X ≥ -4, ist die Konvertierung mit Stil f oder F und Präzision 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.
  • andernfalls ist die Umwandlung mit Stil e oder E und Präzision 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.
Sofern alternative Darstellung wird gebeten die Nullen entfernt werden, auch das Dezimalzeichen wird entfernt, wenn keine Nachkommastellen gelassen wird .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
Gibt die 'Anzahl der geschriebenen Zeichen' bisher von diesem Aufruf der Funktion .
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.
Das Ergebnis ist' geschrieben zu dem Wert, auf den durch das 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.
Die vollständige Spezifikation muss %n sein .
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
'Hinweise:'
Original:
Notes:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die Gleitkomma-Konvertierung Funktionen wandeln unendlich bis inf oder infinity. Welches verwendet wird, ist die Umsetzung defined.
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-Nummer wird an nan oder nan(char_sequence) umgewandelt. Welches verwendet wird, ist die Umsetzung defined.
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.
Die Umsätze F, E, G, A Ausgang INF, INFINITY, NAN statt .
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.
Der Format-String besteht aus Leerzeichen, Nicht-Whitespace-Zeichen (außer %) und Conversion-Spezifikationen. Jede Konvertierung Spezifikation hat das folgende Format:
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.
  • einleitenden % Charakter
    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.
  • (optional) ein oder mehrere Flags, die das Verhalten der Umwandlung zu ändern:
    Original:
    (optional) 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.
  • -: Das Ergebnis der Umwandlung wird innerhalb des Feldes linksbündig (standardmäßig ist es rechtsbündig)
    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.
  • +: das Vorzeichen des unterzeichneten Konvertierungen wird immer dem Ergebnis der Konvertierung vorangestellt (standardmäßig das Ergebnis durch nur minus vorangestellt, wenn es negativ ist)
    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.
  • Raum: wenn das Ergebnis einer vorzeichenbehafteten Umwandlung nicht mit einem Schild Zeichen beginnen, oder leer ist, Raum zu dem Ergebnis, vorangestellt. Es wird ignoriert, wenn + Flag vorhanden ist .
    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.
  • #: alternative Form der Konvertierung durchgeführt. Siehe Tabelle unten für genauen Auswirkungen .
    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: für Integer-und Gleitkomma-Zahl Konvertierungen, führende Nullen werden verwendet, um pad das Feld statt Raum Zeichen. Für Fließkommazahlen wird ignoriert, wenn die Präzision explizit angegeben wird. Für andere Umwandlungen mit dieser Flagge Ergebnisse in undefiniertem Verhalten. Es wird ignoriert, wenn - Flag vorhanden ist .
    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.
  • (optional) ganzzahligen Wert oder * die minimale Feldbreite angibt. Das Ergebnis wird mit Raum Zeichen aufgefüllt (Standard), falls erforderlich, auf der linken Seite, wenn rechtsbündig oder auf der rechten Seite, wenn linksbündig. In dem Fall, wenn * verwendet wird, wird die Breite von einer zusätzlichen Argument des Typs int angegeben. Wenn der Wert des Arguments negativ ist, ergibt sich mit dem - Flagge angegebenen und positiven Feldbreite .
    Original:
    (optional) 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.
  • (optional) . durch ganze Zahl oder * die Präzision der Umwandlung legt gefolgt. In dem Fall, wenn * verwendet wird, wird die Präzision' durch einen zusätzlichen Argument des Typs int angegeben. Wenn der Wert dieses Argument negativ ist, wird es ignoriert. Siehe Tabelle unten für genaue Auswirkungen der Präzision .
    Original:
    (optional) . 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.
  • (optional) Länge Modifizierer, die die Größe des Arguments angibt
    Original:
    (optional) 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.
  • Umwandlung Formatbezeichner
    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.
Die folgenden Formatangaben stehen zur Verfügung:
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
wandelt ein signiertes 'Dezimalzahl' im Stil [-] 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen. Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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
wandelt ein signiertes 'Oktal Integer' im Stil [-] 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen. Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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.
In der alternativen Implementierung' Präzision erhöht wird, wenn erforderlich, einer führenden Null schreiben .
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 diesem Fall, wenn sowohl der konvertierte Wert und die Präzision 0 sind, wird einzelnen 0 geschrieben .
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
wandelt ein signiertes 'hexadezimale Ganzzahl' im Stil [-] 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.
Für die x Umwandlung Briefe abcdef sind 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.
Für die X Umwandlung Briefe ABCDEF sind 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen. Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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.
In der alternative Implementierung 0x oder 0X um Ergebnisse vorangestellt, wenn der konvertierte Wert ungleich Null ist .
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
Konvertiert einen 'vorzeichenlose Dezimalzahl' im Stil 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.
Precision gibt die minimale Anzahl von Stellen zu erscheinen .
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.
Die Standard-Genauigkeit 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.
Wenn sowohl der konvertierte Wert und die Präzision sind 0 die Umwandlung zu keinem Zeichen .
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
wandelt 'Gleitkommazahl' der Dezimalschreibweise im Stil [-] 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.
Precision gibt die minimale Anzahl der Stellen nach dem Komma Zeichen angezeigt werden .
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.
Die Standard-Genauigkeit 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.
In der alternative Implementierung Dezimalzeichen geschrieben, auch wenn ihm keine Ziffern folgen .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
wandelt 'Gleitkommazahl' auf das Dezimalsystem Exponent-Darstellung .
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.
Für die e Umwandlung Stil [-] d.ddd e ± dd ist 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.
Für die E Umwandlung Stil [-] d.ddd E ± dd ist 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.
Der Exponent enthält mindestens zwei Ziffern, mehr Stellen verwendet nur wenn notwendig sind .
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.
Wenn der Wert 0 ist der Exponent auch 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.
Precision gibt die minimale Anzahl der Stellen nach dem Komma Zeichen angezeigt werden .
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.
Die Standard-Genauigkeit 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.
In der alternative Implementierung Dezimalzeichen geschrieben, auch wenn ihm keine Ziffern folgen .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
wandelt 'Gleitkommazahl' der hexadezimalen Exponent-Darstellung .
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.
Für die a Umwandlung Stil [-] 0x h.hhh p ± d ist 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.
Für die A Umwandlung Stil [-] 0X h.hhh P ± d ist 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.
Die erste Hexadezimalziffer ist 0 wenn das Argument nicht eine normalisierte Gleitkommazahl .
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.
Wenn der Wert 0 ist der Exponent auch 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.
Precision gibt die minimale Anzahl der Stellen nach dem Komma Zeichen angezeigt werden .
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.
Die Standard-Genauigkeit ist ausreichend für die exakte Darstellung des Werts .
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.
In der alternative Implementierung Dezimalzeichen geschrieben, auch wenn ihm keine Ziffern folgen .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
wandelt 'Gleitkommazahl' in Dezimalzahlen oder Dezimalzahlen Exponent-Darstellung abhängig vom Wert und der Präzision .
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.
Für die g Umwandlung Stil Umwandlung mit Stil e oder f wird performed.
sein
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.
Für die G Umwandlung Stil Umwandlung mit Stil E oder F wird performed.
sein
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.
Lassen P gleich die Präzision, wenn ungleich Null, 6 wenn die Genauigkeit nicht angegeben ist, oder 1 wenn die Genauigkeit 0. Dann, wenn eine Umwandlung mit Stil E müsste einen Exponenten von 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.
  • wenn P> X ≥ -4, ist die Konvertierung mit Stil f oder F und Präzision 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.
  • andernfalls ist die Umwandlung mit Stil e oder E und Präzision 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.
Sofern alternative Darstellung wird gebeten die Nullen entfernt werden, auch das Dezimalzeichen wird entfernt, wenn keine Nachkommastellen gelassen wird .
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.
Für Unendlichkeit und not-a-number Umwandlung Stil Notizen anzusehen .
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
Gibt die 'Anzahl der geschriebenen Zeichen' bisher von diesem Aufruf der Funktion .
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.
Das Ergebnis ist' geschrieben zu dem Wert, auf den durch das 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.
Die vollständige Spezifikation muss %n sein .
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
'Hinweise:'
Original:
Notes:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die Gleitkomma-Konvertierung Funktionen wandeln unendlich bis inf oder infinity. Welches verwendet wird, ist die Umsetzung defined.
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-Nummer wird an nan oder nan(char_sequence) umgewandelt. Welches verwendet wird, ist die Umsetzung defined.
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.
Die Umsätze F, E, G, A Ausgang INF, INFINITY, NAN statt .
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 -
variable Argument Liste mit den zu druckenden Daten
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.

[Bearbeiten] Rückgabewert

1-3)
Anzahl der Zeichen, wenn erfolgreich oder negativer Wert geschrieben, wenn ein Fehler aufgetreten ist .
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)
Anzahl der Zeichen, wenn erfolgreich oder negativer Wert geschrieben, wenn ein Fehler aufgetreten ist. Wenn die resultierende Zeichenfolge abgeschnitten wird aufgrund buf_size Grenze, kehrt Funktion die Gesamtzahl der Zeichen (ohne das abschließende Null-Byte), die geschrieben worden wäre, wenn der Grenzwert nicht verhängt wurde .
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.

[Bearbeiten] Beispiel

[Bearbeiten] Siehe auch

Drucke formatiert Ausgabe an stdout, eine Datei-Strom oder einen Puffer
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.

(Funktion) [edit]
(C99)
(C99)
(C99)
liest formatierte Eingabe von stdin, ein Datei-Stream oder ein buffer
mit variabler Argumentliste
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.

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