User Tools

Site Tools


c:conio.h:cgets

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 [2024/02/16 01:05] (current)
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>
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/conio.h/cgets.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz