elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Rompecabezas de Bitcoin, Medio millón USD en premios


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación C/C++ (Moderadores: Eternal Idol, Littlehorse, K-YreX)
| | |-+  Sacar con scanf() todo el contenido del buffer del teclado.-
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: 1 [2] Ir Abajo Respuesta Imprimir
Autor Tema: Sacar con scanf() todo el contenido del buffer del teclado.-  (Leído 7,250 veces)
leogtz
. . .. ... ..... ........ ............. .....................
Colaborador
***
Desconectado Desconectado

Mensajes: 3.069


/^$/


Ver Perfil WWW
Re: Sacar con scanf() todo el contenido del buffer del teclado.-
« Respuesta #10 en: 9 Septiembre 2010, 01:33 am »

Código:
Return Value

On success, the function returns the number of items succesfully read. This count can match the expected number of readings or fewer, even zero, if a matching failure happens.
In the case of an input failure before any data could be successfully read, EOF is returned.

http://www.cplusplus.com/reference/clibrary/cstdio/scanf/


En línea

Código
  1. (( 1 / 0 )) &> /dev/null || {
  2. echo -e "stderrrrrrrrrrrrrrrrrrr";
  3. }
  4.  
http://leonardogtzr.wordpress.com/
leogutierrezramirez@gmail.com
Páginas: 1 [2] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[SOLUCIONADO]Sacar datos de contenido web
.NET (C#, VB.NET, ASP)
.:Weeds:. 4 3,434 Último mensaje 26 Mayo 2011, 01:06 am
por .:Weeds:.
scanf no lee vacío desde teclado?
Programación C/C++
flacc 7 5,766 Último mensaje 8 Septiembre 2012, 14:09 pm
por leosansan
Ver todo el contenido de dll y exe
Dudas Generales
d3xf4ult 3 7,515 Último mensaje 23 Enero 2013, 23:57 pm
por MCKSys Argentina
Limpieza de buffer de teclado en lenguaje C. « 1 2 »
Programación C/C++
NOB2014 16 10,625 Último mensaje 20 Enero 2014, 23:37 pm
por leosansan
funcion limpiar buffer de teclado
Programación C/C++
Locura_23 8 8,696 Último mensaje 15 Octubre 2021, 23:57 pm
por RayR
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines