Publisher review:Permute1.C - Returns permutations of an input string chouse_n ( char *strng, int length) returns a pointer to a string of length characters chosen from "strng" , duplicate chars in "strng" are significant. Strings are generated in lexical order.
First call, call with *strng. each subsequent call, call with NULL, returns one combination. Calls after all combinations have been returned return NULL. Will return NULL for errors. Not very defensive (i.e. WILL BREAK)
Permute1.C is a C/C++ script for Snippets scripts design by Bob Stout.
It runs on following operating system: Windows / Linux / BSD / Solaris.
Operating system:Windows / Linux / BSD / Solaris