TCPL: Chapter 1.5.2 - Character Counting

Counts character input from getchar() by saving counts on a 'long'.
Utilize the increment operator ++;

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
Improve character counting by using for-loop and double variable

Use null statement since there is no need for a body in the for-loop.

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
Merge branch 'chapter-1.5.2' into chapter-1.5
TCPL: Chapter 1.5.3 - Line Counting

Detect if a character is equal to '\n' efore incrementing.
'\n' is a character constant, it is a single int value corresponding
to the machine's character set.

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
TCPL: Exercise 1-8 - Blank, Tab, Line Counting

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
Improve Blank, Tab, Line Counting by using single line if-conditions

Merge all if-conditions by using || operator.

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
Merge branch 'exercise-1-8' into chapter-1.5.3
TCPL: Exercise 1-9 - Replacing consectuive blanks with single blank

Copy input to output but replace consecutive blanks with single blank.

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
Merge branch 'exercise-1-9' into chapter-1.5.3
TCPL: Exercise 1-10 - Convert tabs, backspace and backslash on output

Copy input to output while converting tabs to \t, backspace to \b
\ to \\ for unambiguity.

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
Merge branch 'exercise-1-10' into chapter-1.5.3
Merge branch 'chapter-1.5.3' into chapter-1.5
TCPL: Chapter 1.5.4 - Word Counting

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
TCPL: Exercise 1-12 - Copy input to output but one word per line.

Signed-off-by: Ino Gamalinda <ino.gamalinda@teamcodeflux.com>
Merge branch 'exercise-1-12' into chapter-1.5.4
Merge branch 'chapter-1.5.4' into chapter-1.5
Merge branch 'chapter-1.5' into chapter-1