User Tools

Site Tools


c:conio.h:cgets
click
to support this page (eg 0,42 € or so) Thanks.

Differences

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

Link to this comparison view

c:conio.h:cgets [2013/02/03 21:20]
158.181.88.241
c:conio.h:cgets [2013/02/03 21:21] (current)
158.181.88.241
Line 15: Line 15:
 return value: a pointer to str[2]\\ return value: a pointer to str[2]\\
 <code c> <code c>
- #include <stdio.h> +#include <stdio.h> 
- #include <conio.h> +#include <conio.h> 
- int main(void) +int main(void) 
- { +
-    char buffer[83]; +   char buffer[83]; 
-    char    *p; +   char    *p; 
-    buffer[0] = 81; +   buffer[0] = 81; 
-    printf("Input some chars:"); +   printf("Input some chars:"); 
-    p = cgets(buffer); +   p = cgets(buffer); 
-    printf("\ncgets read %d characters: \"%s\"\n", buffer[1], p); +   printf("\ncgets read %d characters: \"%s\"\n", buffer[1], p); 
-    return 0; +   return 0; 
- }+}
 </code> </code>
  
advertising
c/conio.h/cgets.txt · Last modified: 2013/02/03 21:21 by 158.181.88.241

Impressum