int find_max_namelen( const char *names, const int elements_in_array ) {
    int maxlen = 0;
    int maxelement = 0;
    for(i = 0; i < elements_in_array; i++) {
        if( sl = strlen(names[i]) > maxlen ) {
            maxlen = sl;
            maxelement = i;
        }
    }
    return maxelement;
} 
                
        
    
I want to figure out what is the longest name in array I have. What's a good way to do that? I'm looking for the longest name in this (feat_list.name).
Thanks in advance for pointing me in the right direction.