home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / ArchiveUtils / JumpBack / Source / pathutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  586 b   |  21 lines

  1. #ifndef    _PATHUTIL_H_
  2. #define _PATHUTIL_H_
  3.  
  4. /* this is an extract from the old pathutil.h that was in 1.0 text/text.h */
  5.  
  6.  
  7. /* functions for path and file name management */
  8.  
  9. /* return the base file name without any preceding directory */
  10. /* is a pointer into the filename string passed in */
  11. extern char *basename(char *s);
  12.  
  13. /* return the directory path that is embeded in s */
  14. /* this routine uses a static text area so string only good till next call */
  15. extern char *parentname(char *s);
  16.  
  17. /* return true if the path passed in is a directory */
  18. extern int isDirectory(char *s);
  19. #endif
  20.  
  21.