Code:
/tmp/cccmf6dE.o(.text+0x9b8): In function `sort_test':
: undefined reference to `stricmp'
This is a linker error and will prevent your executable from being created. stricmp() is a non-standard function, too. But here's an implementation (un-tested):
Code:
int stricmp(const char *s1, const char *s2) {
    while(*s1 && *s1 == *s2) s1++, s2++;

    if(*s1 < *s2) return -1;
    else if(*s1 > *s2) return 1;
    else return 0;
}