wscanf, fwscanf, swscanf
De cppreference.com
![]() | Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <wchar.h> | ||
int wscanf(constwchar_t* format, ... ); | (1) | (desde C99) |
int fwscanf(FILE*stream, constwchar_t* format, ... ); | (2) | (desde C99) |
int swscanf(constwchar_t* buffer, constwchar_t* format, ... ); | (3) | (desde C99) |
Lee los datos de la variedad una de las fuentes, se interpreta de acuerdo con
format
y almacena los resultados en localizaciones dadas .Original:
Reads data from the a variety of sources, interprets it according to
format
and stores the results into given locations.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
1)
Lee los datos de stdin .
Original:
Reads the data from stdin.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
2)
Lee los datos de
stream
archivo continuo .Original:
Reads the data from 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.
You can help to correct and verify the translation. Click here for instructions.
3)
Lee los datos de terminación nula
buffer
cadena ancha .Original:
Reads the data from null-terminated wide string
buffer
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Contenido |
[editar]Parámetros
stream | - | flujo de entrada de archivo para leer Original: input file stream to read from The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
buffer | - | puntero a una cadena terminada en cero de ancho a leer Original: pointer to a null-terminated wide string to read from The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
format | - | puntero a una cadena terminada en cero amplio indiquen la forma de leer la entrada.
Original: pointer to a null-terminated wide string specifying how to read the input.
The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||
... | - | recibir argumentos Original: receiving arguments 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
Número de argumentos leídos correctamente, o si se produce un fallo EOF antes de recibir el primer argumento fue asignado .
Original:
Number of arguments successfully read, or EOF if failure occurs before the first receiving argument was assigned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar]Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
[editar]Ver también
(C99)(C99)(C99) | lee la entrada con formato de caracteres anchos de stdin, un stream archivo o un buffer usando la lista de argumentos variable Original: reads formatted wide character 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. (función) |
Documentación de C++ para wscanf, fwscanf, swscanf |