/** * swap.c - The legendary swap function. Based on code from K&R. */ // +---------+-------------------------------------------------------- // | Headers | // +---------+ #include "swap.h" // +--------------------+--------------------------------------------- // | Exported Functions | // +--------------------+ void swap (int *px, int *py) { int temp; temp = *px; *px = *py; *py = temp; } // swap