Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!udel!princeton!bow.Princeton.EDU!subbarao From: subbarao@bow.Princeton.EDU (Kartik Subbarao) Newsgroups: comp.lang.c Subject: Re: need way to find all character combinations in a string Message-ID: <5561@idunno.Princeton.EDU> Date: 21 Jan 91 22:27:03 GMT References: <59459@aurs01.UUCP> Sender: news@idunno.Princeton.EDU Lines: 21 In article <59459@aurs01.UUCP> varnell@aurs01.uucp (Mark Varnell) writes: >I am looking for help on a c programming class assignment. >I am suppose to write a program that takes an input string array, >up to six characters maximum, and print all combinations of the >characters in the string. For example, if "cat" in the input, >the output would be something like this: >cat cta atc act tca tac > Matthew T. Day (mday@iconsys.icon.com), recently posted a permuter to this newsgroup. There are bound to be many which exist on the net somewhere. -Kartik -- internet# find . -name core -exec cat {} \; |& tee /dev/tty* subbarao@{phoenix or gauguin}.Princeton.EDU -|Internet kartik@silvertone.Princeton.EDU (NeXT mail) -| SUBBARAO@PUCC.BITNET - Bitnet