/* upper_to_lower @author: Justus Goldstein-Shirley [goldstei4] */ #include /* * A procedure that, given a valid filename, changes all characters in the file * to lowercase. */ void upper_to_lower(char* name){ FILE *file; file = fopen(name, "r"); if(file == NULL){ perror("No such file."); }else{ //Find length of file [1] int length; fpos_t position; fgetpos( file, &position ); fseeko( file, 0, SEEK_END ); length = ftello( file ); fsetpos( file, &position ); //Save contents of file to array as lowercase char contents[length]; int i; for(i=0; i and accessed 1/29/14. [2] Help with basic file i/o came from "Intro to File Input/Output in C" at , accessed 1/29/14. */