while Example
#include <stdio.h> int main() { char c; while ( c = getc (stdin), c != EOF ) { printf (" '%c' = %d\n", c, c); } return (0); }