User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

c:conio.h:cscanf [2013/02/03 21:04] external edit
c:conio.h:cscanf [2013/02/03 21:15] (current)
Line 1: Line 1:
 ====== cscanf ====== ====== cscanf ======
 <code c> <code c>
 +int cscanf(char *format[, address, ...]); 
 </code> </code>
 ==== description of cscanf ==== ==== description of cscanf ====
-cscanf is in work by \\  +reads input from the console and reformat it.\\ 
-if you are faster... don't hasitate and add it+\\ 
 +cscanf reads directly from the console of a series of input fields one character at. \\ 
 +Then each field is formatted according to the format specifier is passed cscanf in the format designated by the pointer format string.\\ Finally stores cscanf formatted input to the direction indicated by the argument address memory address and shows the input on the screen.\\ There must be as many format specifiers and addresses given as input fields.\\
 <code c> <code c>
-no example at the moment+#include <conio.h> 
 +int main(void) 
 +    char string[80]; 
 +    clrscr(); 
 +    cprintf("Enter a string :"); 
 +    cscanf("%s", string); 
 +    cprintf("\r\nyour string: %s", string); 
 +    return 0; 
 </code> </code>
 ===== output of cscanf c example ===== ===== output of cscanf c example =====
-    no example at the moment+    Enter a string : 42theanswerismypadavan 
 +    your string: 42theanswerismypadavan
c/conio.h/cscanf.txt · Last modified: 2013/02/03 21:15 by

Impressum Datenschutz