FreeBSD/lib/libc/gen/scandir.c
/*
 * Alphabetic order comparison routine for those who want it.
 * POSIX 2008 requires that alphasort() uses strcoll().
 */
Alphabetic order comparison routine for those who want it.
POSIX 2008 requires that alphasort() uses strcoll().
Alphabetic order comparison routine for those who want it . POSIX 2008 requires that alphasort () uses strcoll () .
int
alphasort(const struct dirent **d1, const struct dirent **d2)
{
	return (strcoll((*d1)->d_name, (*d2)->d_name));
}
int alphasort ( const struct dirent * * d1 , const struct dirent * * d2 ) { return ( strcoll ( ( * d1 ) -> d_name , ( * d2 ) -> d_name ) ) ; }
Alphabetic order comparison routine for those who want it.
Alphabetic order comparison routine for those who want it .