~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_fn_ext.cc

  • Committer: Monty Taylor
  • Date: 2008-11-16 23:47:43 UTC
  • mto: (584.1.10 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116234743-c38gmv0pa2kdefaj
BrokeĀ outĀ cached_item.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
 
17
17
#include "mysys_priv.h"
18
 
#include <m_string.h>
 
18
#include <mystrings/m_string.h>
19
19
 
20
20
/*
21
21
  Return a pointer to the extension of the filename.
36
36
char *fn_ext(const char *name)
37
37
{
38
38
  register const char *pos, *gpos;
39
 
  DBUG_ENTER("fn_ext");
40
 
  DBUG_PRINT("mfunkt",("name: '%s'",name));
41
39
 
42
40
#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR) || defined(BASKSLASH_MBTAIL)
43
41
  {
50
48
    gpos= name;
51
49
#endif
52
50
  pos=strchr(gpos,FN_EXTCHAR);
53
 
  DBUG_RETURN((char*) (pos ? pos : strend(gpos)));
 
51
  return((char*) (pos ? pos : strchr(gpos, '\0')));
54
52
} /* fn_ext */