Espacios de nombres
Variantes
Acciones

strtok

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

 
 
 
Terminadas en nulo de bytes
Funciones
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
De manipulación de caracteres
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.
Las conversiones a formatos numéricos
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.
Cadena de manipulación
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
Cadena examen
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.
Memoria manipulación
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
Varios
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 <string.h>
char* strtok( char* str, const char* delim );
Busca el siguiente token de una cadena terminada en cero byte apuntado por str. Los caracteres separadores son identificados por cadena terminada en null byte apuntado por delim .
Original:
Finds the next token in a null-terminated byte string pointed to by str. The separator characters are identified by null-terminated byte string pointed to by delim.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si str != NULL, la función busca el primer carácter que no es' separador. Este personaje es el principio de la' token. Entonces, la función busca el carácter separador de primera. Este personaje es el final del token. Función termina y devuelve si NULL final de str se encuentra antes de la final' token se encuentra. De lo contrario, un puntero al final de la' token se guarda en una ubicación estática para invocaciones posteriores. Este carácter se reemplaza por un carácter NULL y la función devuelve un puntero al comienzo de la muestra .
Original:
If str != NULL, the function searches for the first character which is not separator. This character is the beginning of the token. Then the function searches for the first separator character. This character is the end of the token. Function terminates and returns NULL if end of str is encountered before end of the token is found. Otherwise, a pointer to end of the token is saved in a static location for subsequent invocations. This character is then replaced by a NULL-character and the function returns a pointer to the beginning of the token.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si str == NULL, la función continúa desde donde se quedó en la invocación anterior. El comportamiento es el mismo que si el puntero almacenado previamente se pasa como str .
Original:
If str == NULL, the function continues from where it left in previous invocation. The behavior is the same as if the previously stored pointer is passed as str.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Parámetros

str -
puntero a la cadena de bytes terminada en cero para dividir
Original:
pointer to the null-terminated byte string to tokenize
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
delim -
puntero a la cadena de bytes de terminación nula identificar delimitadores
Original:
pointer to the null-terminated byte string identifying delimiters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Valor de retorno

Puntero al comienzo de un token de si el final de la cadena no ha sido encontrado. Si no regresa NULL>
Original:
Pointer to the beginning of a token if the end of string has not been encountered. Otherwise returns NULL>
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Nota

La función no es seguro para subprocesos .
Original:
The function is not thread safe.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Ejemplo

[editar] Ver también