/** * sort.h * The generic "sort an array of strings" procedure. */ #ifndef __SORT_H__ #define __SORT_H__ /** * Procedure: * sort * Parameters: * strings, an array of strings * size, a non-negative integer * Purpose: * Sorts the first size elements of strings. * Produces: * [Nothing; Called for the side effect.] * Preconditions: * size <= number of elements in strings * Postconditions: * strcmp (strings[i-1], strings[i]) <= 0 for 0 < i < size. * Elements have neither been added to nor removed from strings. */ void sort (char *strings[], int size); #endif // __SORT_H__