Unformatted text preview: // lexicographically. int my_strcmp(const char* s1, const char* s2); // Pre-condition: s1 and s2 are null terminated strings. // Post-condition: copies the contents of s2 into s1 // and terminates the contents with a null // character. int my_strcpy(char* s1, const char* s2); The scaffold code is attached off a separate link for this quiz program. If you run it without changing my_strcmp and my_strcpy, the program will simply print out the list of names in the original order in which they were in the input file....
View Full Document
- Spring '08
- Sort, ASCII, Imperative programming, Programming constructs, const char* s2, const char* s1