~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_fn_ext.c

  • Committer: Brian Aker
  • Date: 2008-07-14 22:40:46 UTC
  • Revision ID: brian@tangent.org-20080714224046-x183907w9wp1txwv
Removed sql_manager. Ever heard of just setting up the OS to sync when you
want it to?

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
 
17
17
#include "mysys_priv.h"
18
 
#include <mystrings/m_string.h>
 
18
#include <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));
39
41
 
40
42
#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR) || defined(BASKSLASH_MBTAIL)
41
43
  {
48
50
    gpos= name;
49
51
#endif
50
52
  pos=strchr(gpos,FN_EXTCHAR);
51
 
  return((char*) (pos ? pos : strchr(gpos, '\0')));
 
53
  DBUG_RETURN((char*) (pos ? pos : strend(gpos)));
52
54
} /* fn_ext */