~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_fn_ext.c

  • Committer: Monty Taylor
  • Date: 2008-08-16 21:06:22 UTC
  • Revision ID: monty@inaugust.com-20080816210622-zpnn13unyinqzn72
Updated po files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
 
17
 
#include "drizzled/internal/mysys_priv.h"
18
 
#include "drizzled/internal/m_string.h"
 
17
#include "mysys_priv.h"
 
18
#include <mystrings/m_string.h>
19
19
 
20
20
/*
21
21
  Return a pointer to the extension of the filename.
37
37
{
38
38
  register const char *pos, *gpos;
39
39
 
40
 
#if defined(FN_DEVCHAR)
 
40
#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR) || defined(BASKSLASH_MBTAIL)
41
41
  {
42
42
    char buff[FN_REFLEN];
43
43
    size_t res_length;
48
48
    gpos= name;
49
49
#endif
50
50
  pos=strchr(gpos,FN_EXTCHAR);
51
 
  return((char*) (pos ? pos : strchr(gpos, '\0')));
 
51
  return((char*) (pos ? pos : strend(gpos)));
52
52
} /* fn_ext */