Use std::string instead of char* for filenames in some places
Remove invalid comment
Replace more 'char *' with std::string
Provide a tail() function that operates on std::strings
Make 'desc' and 'help' members of 'subnfunc' structure be std::string objects instead of char*
Load history file using std::ifstream instead of FILE*/fopen
Read/write search history file using std::ifstream/std::ofstream
Read/write pos history file using std::ifstream/std::ofstream
Declare some variables for libmagic stuff closer to where they're used