Some simple file oriented functions
This module contains some simple file oriented functions primarily intended to be useful for GUI development. (../include/detk/file.h)
Part of the detk library.
const char* mx_basename(const char* fname)
This function returns a pointer to the base name of a file path. (../include/detk/file/basename.c)
basename taken from the DJGPP sources. (../include/detk/file/basename.c)
int mx_fgetw(FILE* f)
This function reads a binary word from a FILE using a (Intel? Motorola?) byte order. (../include/detk/file/fgetw.c)
fgetw taken from Allegro sources. (../include/detk/file/fgetw.c)
unsigned mx_filename_match(const char* p, const char* t)
This function return non-zero if a filename matches a given pattern. Patterns match '*' to one or more characters and '?' to a single character. (../include/detk/file/match.c)
Multiple patterns can be matched by sepaarating them with ';' characters. (../include/detk/file/match.c)
Filename matching code taken with permission from the very nice webpage of Alessandro Cantaore http://xoomer.virgilio.it/acantato/dev/wildcard/wildmatch.html (../include/detk/file/match.c)
void mx_path_fix(char* ptr)
This function corrects a path specifier by removing /./ directories and moving /../ to the start of the path. (../include/detk/file/pathfix.c)
On MSDOS platforms leading drive specs are ignored. (../include/detk/file/pathfix.c)
Generated by MXDOC 2.2 on Sun Feb 4 15:16:27 2007