Namensräume
Varianten
Aktionen

atoi, atol, atoll

Aus cppreference.com
< c‎ | string‎ | byte

 
 
 
Null-terminierte Byte-Strings
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.
Character Manipulation
Original:
Character manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Umwandlungen in numerische Formate
Original:
Conversions to numeric formats
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
atof
atoi
atol
atoll
strtol
strtoll
String-Manipulation
Original:
String manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strcpy
strncpy
strcat
strncat
strxfrm
String Prüfung
Original:
String examination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Speicher Manipulation
Original:
Memory manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memchr
memcmp
memset
memcpy
memmove
Verschiedenes
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strerror
 
Defined in header <stdlib.h>
int       atoi( const char *str );
long      atol( const char *str )
long long atoll( const char *str );
Legt einen Integer-Wert in einem Byte String, auf den str .
Original:
Interprets an integer value in a byte string pointed to by str.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die Funktion verwirft alle Leerzeichen bis zum ersten Nicht-Whitespace-Zeichen. Dann werden solange Zeichen gelesen, solange sie eine gültige ganze Zahl darstellen. Die gelesenen Zeichen werden anschließend in einen Integer-Wert umgewandelt. Der gültige Integer-Wert besteht aus den folgenden Teilen:
Original:
Function discards any whitespace characters until first non-whitespace character is found. Then it takes as many characters as possible to form a valid integer number representation and converts them to integer value. The valid integer value consists of the following parts:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • (optional) Plus-oder Minuszeichen
    Original:
    (optional) plus or minus sign
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Ziffern
    Original:
    numeric digits
    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

str -
Zeiger auf die null-terminierte Byte-String interpretiert werden
Original:
pointer to the null-terminated byte string to be interpreted
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

Integer-Wert entsprechend dem Inhalt der str auf Erfolg. Wenn der konvertierte Wert fällt außerhalb der Reichweite der entsprechenden Rückgabetyp, ist der Rückgabewert undefiniert. Wenn keine Umwandlung durchgeführt werden kann, wird zurückgegeben 0 .
Original:
Integer value corresponding to the contents of str on success. If the converted value falls out of range of corresponding return type, the return value is undefined. If no conversion can be performed, 0 is returned.
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

wandelt ein Byte-String in einen ganzzahligen Wert
Original:
converts a byte string to an integer value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktion) [edit]
wandelt ein Byte-String in einen vorzeichenlosen Integer-Wert
Original:
converts a byte string to an unsigned integer value
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 atoi, atol, atoll