Search:

Type: Posts; User: Adak

Search: Search took 0.25 seconds.

  1. Replies
    18
    Views
    10,499

    What that error message is saying is that qsort...

    What that error message is saying is that qsort on your compiler, needs a const char pointer, instead of a const void pointer. Which is *really* non-standard.

    Can you d/l and use a newer, free...
  2. Replies
    18
    Views
    10,499

    What compiler are you using, Malachi? Did you...

    What compiler are you using, Malachi?

    Did you try the simpler:
    return(strcmp(a, b)); //?
  3. Replies
    18
    Views
    10,499

    That is the help file for qsort - it's not code...

    That is the help file for qsort - it's not code to put into your program!

    It just explains what qsort is, in the C standard library, and how to use it, and then has a small simple example program,...
  4. Replies
    18
    Views
    10,499

    You have defined a cmp function, and on the qsort...

    You have defined a cmp function, and on the qsort line, you have named the compare function.

    But you have not put in a cmp function!

    I'm giving you a bit of a rough handling because I object...
  5. Replies
    18
    Views
    10,499

    Don't you need a real cmp function, for this to...

    Don't you need a real cmp function, for this to work?

    I don't see one.

    You've got the definition of the cmp function, but no function.
Results 1 to 5 of 6