return(size_of_file);\r
}\r
\r
+// clrstdin() clear any leftover chars tha may be in stdin stream //\r
+void clrstdin()\r
+{\r
+ int ch = 0;\r
+ while( ( ch = getchar() ) != '\n' && ch != EOF );\r
+}\r
+\r
//from http://stackoverflow.com/questions/2736753/how-to-remove-extension-from-file-name\r
// remove_ext: removes the "extension" from a file spec.\r
// mystr is the string to process.\r
char *retstr, *lastdot, *lastsep;\r
\r
// Error checks and allocate string.\r
-\r
if (mystr == NULL)\r
return NULL;\r
if ((retstr = malloc(strlen (mystr) + 1)) == NULL)\r
}\r
\r
\r
-\r
//from http://quiz.geeksforgeeks.org/c-program-cyclically-rotate-array-one/\r
void rotateR(byte *arr, byte n)\r
{\r
return(-1);\r
}\r
\r
-\r
+// for input test //\r
byte dirchar(byte in)\r
{\r
byte out;\r