dfs_util.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. +------------------------------------------------------------------------------
  3. | Project : Device Filesystem
  4. +------------------------------------------------------------------------------
  5. | Copyright 2004, 2005 www.fayfayspace.org.
  6. | All rights reserved.
  7. |------------------------------------------------------------------------------
  8. | File : dfs_util.h, some misc definitions of Device FileSystem
  9. |------------------------------------------------------------------------------
  10. | Chang Logs:
  11. | Date Author Notes
  12. | 2005-01-26 ffxz The first version
  13. +------------------------------------------------------------------------------
  14. */
  15. #ifndef __DFS_UTIL_H__
  16. #define __DFS_UTIL_H__
  17. #include <dfs_def.h>
  18. int dir_name(const char* path, char* dirname, int len);
  19. int file_name(const char* path, char* filename, int len);
  20. int next_dir_name(const char* path, int pos, char* next);
  21. void build_fullpath(const char *directory, const char *filename, char *fullpath);
  22. int str_is_prefix(const char* prefix, const char* str);
  23. #if !defined(RT_USING_MINILIBC) && !defined(RT_USING_NEWLIB)
  24. char *strrchr(const char *t, int c);
  25. #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION / 10000 < 35)
  26. #include <stddef.h>
  27. int strncasecmp(const char* s1, const char* s2, size_t len);
  28. #endif /* end of __ARMCC_VERSION */
  29. #endif
  30. #endif