~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_fn_ext.cc

Reverted 1103

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
 
 
16
 
#include "config.h"
17
 
 
18
 
#include "drizzled/internal/my_sys.h"
19
 
#include "drizzled/internal/m_string.h"
20
 
 
21
 
namespace drizzled
22
 
{
23
 
namespace internal
24
 
{
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
 
 
17
#include "mysys/mysys_priv.h"
 
18
#include <mystrings/m_string.h>
25
19
 
26
20
/*
27
21
  Return a pointer to the extension of the filename.
43
37
{
44
38
  register const char *pos, *gpos;
45
39
 
46
 
#if defined(FN_DEVCHAR)
 
40
#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR)
47
41
  {
48
42
    char buff[FN_REFLEN];
49
43
    size_t res_length;
56
50
  pos=strchr(gpos,FN_EXTCHAR);
57
51
  return((char*) (pos ? pos : strchr(gpos, '\0')));
58
52
} /* fn_ext */
59
 
 
60
 
} /* namespace internal */
61
 
} /* namespace drizzled */