home *** CD-ROM | disk | FTP | other *** search
- /* Misc.LeafName.c
- * Copyright 1993 Erik de Kort
- */
-
- /* LeafName() --------------------------------------------------------------
- * Return a pointer to the leaf of 'FullPath'.
- * Note that this pointer is within the 'FullPath' string.
- * If no '.' is encountered in FullPath, then the pointer FullPath is returned.
- */
- extern char *LeafName(char *FullPath)
- {
- char *Leaf, ch = '.';
-
- do
- {
- if (ch == '.')
- Leaf = FullPath ;
- } while((ch = *(FullPath++)) != '\0') ;
- return(Leaf) ;
- }
-