home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
file39a.zip
/
src
/
_getname.c
next >
Wrap
Text File
|
1993-04-04
|
293b
|
13 lines
/* EMX/gcc defines _getname() to retrieve a pointer to the filename part
of the path. Define this for MSC.
*/
char *_getname(char *path)
{
int i;
for (i = strlen(path); i > 0; i--)
if (path[i-1] == ':' || path[i-1] == '/' || path[i-1] == '\\') break;
return (path + i);
}