pathname.h
上传用户:andy_li
上传日期:2007-01-06
资源大小:1019k
文件大小:1k
源码类别:

压缩解压

开发平台:

MultiPlatform

  1. #ifndef PATHNAME_H
  2. #define PATHNAME_H 1
  3. char *StripPartialDir(char *CompletePath,
  4.                       const char *PartialPath, const char *FullPath);
  5. char *Real2RfDfFilen(char *RfDfFilen, const char *RealPath, short CurrentFork,
  6.                      short MacZipMode, Boolean DataForkOnly);
  7. char *RfDfFilen2Real(char *RealFn, const char *RfDfFilen, short MacZipMode,
  8.                      Boolean DataForkOnly, short *CurrentFork);
  9. unsigned short GetVolumeFromPath(const char *FullPath, char *VolumeName);
  10. char *GetCompletePath(char *CompletePath, const char *name, FSSpec *Spec,
  11.                       OSErr *err);
  12. char *TruncFilename(char *CompletePath, const char *name, FSSpec *Spec,
  13.                     OSErr *err);
  14. char *GetFilename(char *CompletePath, const char *name);
  15. char *GetFullPathFromSpec(char *CompletePath, FSSpec *Spec, OSErr *err);
  16. char *GetFullPathFromID(char *CompletePath, short vRefNum, long dirID,
  17.                         ConstStr255Param name, OSErr *err);
  18. char *GetAppName(void);
  19. #define UnKnown_EF      0
  20. #define JohnnyLee_EF    1
  21. #define NewZipMode_EF   2
  22. #define ResourceFork    -1
  23. #define DataFork        1
  24. #define NoFork          0
  25. #ifndef NAME_MAX
  26. #define NAME_MAX    1024
  27. #endif
  28. #endif   /*  PATHNAME_H  */