#ifndef READCHARACTER_H
#define READCHARACTER_H
#include "../struct.h"
#include "../error_codes.h"

int readCharacter(cmd_args args);

/*
*	Reads from the source file provided in a while loop until it reaches EOF,
*	counting words, lines and individual characters along the way.
*	
*	On EOF it exits the loop and prints the relevant information on stdout determined by 
*	various pseudo-boolean variables in the 'args' struct.
*
*
*	
*
*
*
*	**Lines are defined by a '\n' character.
*
*	**Characters are defined as every byte the function is able to read.
*
*	**Words are defined as a single alphanumeric/symbol character (that is to say >32 in the ascii table)
*	followed by either a SPACE or EOF.
*	In order to check this character succession a 'tmp' variable is used 
*	to store the last read character.
*/

#endif /*READCHARACTER_H*/