String permutations in C