Tag - swap function in c