17 #include "mysys_priv.h"
36 char *fn_ext(
const char *
name)
38 register const char *pos, *gpos;
40 DBUG_PRINT(
"mfunkt",(
"name: '%s'",name));
42 #if defined(FN_DEVCHAR) || defined(BASKSLASH_MBTAIL)
46 gpos= name+ dirname_part(buff,(
char*) name, &res_length);
49 if (!(gpos= strrchr(name, FN_LIBCHAR)))
52 pos=strchr(gpos,FN_EXTCHAR);
53 DBUG_RETURN((
char*) (pos ? pos : strend(gpos)));