src/stdlib/llstrcmp.c
/*===================================================
 * ll_what_collation -- get string describing collation in use
 *=================================================*/
- get string describing collation in use
- get string describing collation in use
CNSTRING
ll_what_collation (void)
{
	INT rtn;
	if (opt_finnish) return "Latin1/Finnish";
	if (usersort && (*usersort)("a", "b", &rtn)) return "user-defined";
#ifdef HAVE_WCSCOLL
	{
		ZSTR zstr = makewide("test");
		rtn = (zstr != 0);
		zs_free(&zstr);
		if (rtn) return "wcscoll";
	}
#endif
#ifdef HAVE_STRCOLL
	return "strcoll";
#else
	return "strcmp";
#endif
}
CNSTRING ll_what_collation ( void ) { INT rtn ; if ( opt_finnish ) return " " ; if ( usersort && ( * usersort ) ( " " , " " , & rtn ) ) return " " ; #ifdef HAVE_WCSCOLL { ZSTR zstr = makewide ( " " ) ; rtn = ( zstr != 0 ) ; zs_free ( & zstr ) ; if ( rtn ) return " " ; } #endif #ifdef HAVE_STRCOLL return " " ; #else return " " ; #endif }
ll_what_collation -- get string describing collation in use
ll_what_collation -- get string describing collation in use