/** * string-swap.c - An implemenation of string-swap. Designed as * part of a sample solution to assignment 7. */ // +---------+-------------------------------------------------------- // | Headers | // +---------+ #include "string-utils.h" // For string_swap // +--------------------+--------------------------------------------- // | Exported Functions | // +--------------------+ /** * Swap elements at positions i and j. */ void string_swap (char *strings[], int i, int j) { char *tmp = strings[i]; strings[i] = strings[j]; strings[j] = tmp; } // string_swap