#include #include #include #include #include #include typedef struct { int file_line; int file_col; int buff_line; int buff_col; int editmode; } EditorData; void help() { printf("Usage:\n"); printf(" cmd open // opens the specified file\n"); printf(" cmd rm // deletes the specified file\n"); printf(" cmd new // creates a new empty file at the specified path\n"); printf(" cmd mv // moves the specified file to the new path\n"); printf(" cmd cp // copies the specified file to the new path\n"); printf(" cmd len // returns the length of the specified file\n"); printf(" cmd log // prints a list of all changes made to the file\n"); }