Text Processing

Lesson overview

Topics covered: getchar, putchar, EOF, string copying loops.

Text Processing

getchar() - read single character
putchar() - write single character
EOF - end of file indicator (usually -1)
Loop: while ((c = getchar()) != EOF) { ... }

Article author: Arthur Isaev

Banner image