Mega Code Archive

 
Categories / C / Console
 

Get the next character from stdin

#include <stdio.h> int main () {   char c;      puts ("Enter text. '.' to exit:");   do {     c=getchar();     putchar (c);   } while (c != '.');   return 0; }