#include <stdlib.h>
#include <stdio.h>

int comp1(const void* a, const void* b)
{
    return strlen(*(char**)a) - strlen(*(char**)b);
}

int main()
{
    char* sort_char_array[] = { "about", "this", "and", "url", "that", "the", "i", "hi" };
    qsort(sort_char_array, 8, sizeof(char*), comp1); //about and hi i that the this url
    for (int i = 0; i < 8; i++)
        printf("%s\n",sort_char_array[i]);
}
