News for hackers. Stuff that matters.
Re:The tiniest C sort function? by uncompetence on Tuesday November 09, 2010 @11:39PM (#1889190)
Why the hell is recursion considered cheating?
Re:The tiniest C sort function? by pmiller2 on Wednesday November 10, 2010 @12:56AM (#1889364)
Use of recursion isn't the part that's cheating. It's that the recursive function uses a dummy argument to avoid allocating a temporary variable so it doesn't have the same signature as the other functions and it requires the caller to allocate space for the dummy variable.
Re:The tiniest C sort function? by kang on Wednesday November 10, 2010 @04:36AM (#1889756)
So people is this really the tiniest?
Re:The tiniest C sort function? by zoowar on Tuesday November 09, 2010 @05:38PM (#1888260)
I much prefer readable code.