maintenance.c
/* an implementation of insertion sort called by sync_folder */
an implementation of insertion sort called by sync_folder
an implementation of insertion sort called by sync_folder
void sort_names(char names[][MAX_CHARS], int size)
{
    int i, j;
    for (i = size - 1; i > 0; i--)
        for (j = i; j < size && strcmp(names[j], names[j - 1]) < 0; j++)
            swap(names, j, j - 1);
}
void sort_names ( char names [ ] [ MAX_CHARS ] , int size ) { int i , j ; for ( i = size - 1 ; i > 0 ; i -- ) for ( j = i ; j < size && strcmp ( names [ j ] , names [ j - 1 ] ) < 0 ; j ++ ) swap ( names , j , j - 1 ) ; }
an implementation of insertion sort called by sync_folder
an implementation of insertion sort called by sync_folder