Got rid of some useless functions and commented all the code
This commit is contained in:
@@ -6,13 +6,12 @@
|
||||
|
||||
|
||||
//Function declarations
|
||||
int ask_file(); // It has no flags, it just prompts for filename
|
||||
int get_file(char *fileName); // Gets the filename passed on has an argument
|
||||
int invert_file(void); // Invert the file stored in the variable info.filename
|
||||
int ask_file(); // It has no flags, it just prompts for filename
|
||||
int invert_file(void); // Invert the file stored in the variable info.filename
|
||||
|
||||
|
||||
//This are general parameters for the program
|
||||
struct parameters {
|
||||
|
||||
struct parameters { //This are general parameters for the program
|
||||
|
||||
char filename[100]; // Filename where the text is
|
||||
FILE *fd; // File descriptor for the text file
|
||||
@@ -21,6 +20,6 @@ struct parameters {
|
||||
char help[]; // Help menu to be printed on screen
|
||||
};
|
||||
|
||||
struct parameters info;
|
||||
struct parameters info; // Declare struct info of type parameters
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user