Get rid of the malloc in shuffle(), by defining a subfunction
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 17 Jul 2005 12:12:16 +0000 (12:12 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 17 Jul 2005 12:12:16 +0000 (12:12 +0000)
commitd74986c91651f2aa39474f84cf64639d8b8ba4fc
tree34596c9273c608a317b1701a8aefe5e1a56e538f
parent9bb4a9a0f35f10b4341bb78140b9e916aeb3aa09
Get rid of the malloc in shuffle(), by defining a subfunction
memswap() which declares a fixed-size buffer on the stack and uses
it multiple times if necessary.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6107 cda61777-01e9-0310-a592-d414129be87e
misc.c