Wednesday, April 27, 2011

QSort

Instead of tackling a new project I decided to go back to the K&R book and see if any of the stuff that was once over my head makes sense.

QSort scared me when it came up in the book. I took a stab at writing a program that used QSort to sort a string alphabetically and after some heavy pondering over my code vs code in a tutorial I finally figured it out. I'll try to make a writeup this evening.

Spoiler alert: there is a line where I cast a void pointer to a const char pointer to a pointer and then dereference it all in the same statement.

No comments:

Post a Comment