Open Means Open Means
/*////////////////////////////////////*/
#include
#include
/* Prototype of the C++ function. */
int SizeArray(void);
/*////////////////////////////////////*/
/* The compare function for qsort().  */
/*////////////////////////////////////*/
static int comp(const void *a, const void *b)
{
    return strcmp(*(char **)a, *(char **)b);
}
/*////////////////////////////////////*/
/* C function called from C++ program.*/
/*////////////////////////////////////*/
void SortCharArray(char **List)
{
    int sz = SizeArray();
    qsort(List, sz, sizeof(char *), comp);
}

No comments

Login to post a comment

Show
  • Create an account
  • Forgot your username?
  • Forgot your password?
  • About Us
  • Faqs
  • Contact Us
  • Disclaimer
  • Terms & Conditions