First commit, everything finished and ready.
This commit is contained in:
28
include/main.h
Normal file
28
include/main.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef __CHCOUNT_H__
|
||||
#define __CHCOUNT_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
//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
|
||||
|
||||
|
||||
//This are general parameters for the program
|
||||
struct parameters {
|
||||
|
||||
char filename[100]; // Filename where the text is
|
||||
FILE *fd; // File descriptor for the text file
|
||||
char version[5]; // Holds the software version
|
||||
int fileNameSize; // File maximum name size
|
||||
char help[]; // Help menu to be printed on screen
|
||||
};
|
||||
|
||||
struct parameters info;
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user