maintenance.c
/* swap two strings by index in a nested character array. Called by
sort_names */
swap two strings by index in a nested character array.
swap two strings by index in a nested character array .
void swap(char names[][MAX_CHARS], int i, int j)
{
    char temp[MAX_CHARS];
    strcpy(temp, names[i]);
    strcpy(names[i], names[j]);
    strcpy(names[j], temp);
}
void swap ( char names [ ] [ MAX_CHARS ] , int i , int j ) { char temp [ MAX_CHARS ] ; strcpy ( temp , names [ i ] ) ; strcpy ( names [ i ] , names [ j ] ) ; strcpy ( names [ j ] , temp ) ; }
swap two strings by index in a nested character array.
swap two strings by index in a nested character array .