+++ /dev/null
-#ifndef __GETPATH_H\r
-#define __GETPATH_H\r
-\r \r\r
-#ifdef __cplusplus\r
-extern "C" {
- \r
-#endif /* \r */
- \r
-/* getpath th -- get the path of the file name specified by the first parameter\r
- * of the function and store the path in its second parmater.\r
- * the function returns the length of the path of the file. \r
- *\r
- * param file_name The file name to get the path\r
- * param path The address of the path of the file\r
- * \r
- * return If successful, the function returns the len of the path.\r
- * Otherwise the function returns -1 and sets errno to indicate\r
- * the error.\r
- *\r
- * errors\r
- *\r
- * [ENOENT] the file name specified as parameter does not exist.\r
- * \r
- * [ENOMEM] because this function use calloc, errno can be set with\r
- * this error code. \r
- *\r
- */ \r
- int \r getpath(const char *file_name, char **path);
- \r\r
-/* translatepath -- path translation\r
- *\r
- * param totranslate The path to translate.\r
- * param transled The address of the translated path.\r
- *\r
- * return If successful the function returns the len of the translated path.\r
- * 0therwise the function returns -1 and sets the global variable errno\r
- * to indicate the error.\r
- *\r
- * errors [ENOTDIR] the path to translate is not a directory.\r
- \r
- * [ENOMEM] because this function use calloc, errno can be set with\r
- * this error code. \r
- */ \r
- int \r translatepath(const char *totranslate, char **translated);
- \r\r
-#ifdef __cplusplus\r
-} \r
-#endif /* \r */
-\r\r
-#endif /* !__GETPATH_H */\r