18 lines
281 B
C
18 lines
281 B
C
|
#include <stdio.h>
|
||
|
#include "swapper.h"
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
if (3 != argc)
|
||
|
return 1;
|
||
|
|
||
|
if (swapper_length_difference(argv[1], argv[2]))
|
||
|
return 2;
|
||
|
|
||
|
swapper_swap(argv[1], argv[2]);
|
||
|
|
||
|
printf("%s\n%s\n", argv[1], argv[2]);
|
||
|
|
||
|
return 0;
|
||
|
}
|