Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
last changes of Tesh tools
[simgrid.git] / tools / tesh2 / include / getpath.h
index c4c68de..8ddf6b3 100644 (file)
@@ -1,54 +1,54 @@
-#ifndef __GETPATH_H
-#define __GETPATH_H
-
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* getpath th    --            get the path of the file name specified by the first parameter
- *                                             of the function and store the path in its second parmater.
- *                                             the function returns the length of the path of the file.                                 
- *
- * param file_name             The file name to get the path
- * param path                  The address of the path of the file
- * 
- * return                              If successful, the function returns the len of the path.
- *                                             Otherwise the function returns -1 and sets errno to indicate
- *                                             the error.
- *
- * errors
- *
- *                                             [ENOENT]        the file name specified as parameter does not exist.
- *                             
- *                                             [ENOMEM]        because this function use calloc, errno can be set with
- *                                                                     this error code.                                
- *
- */
-int
-getpath(const char* file_name, char** path);
-
-/* translatepath   --  path translation
- *
- * param totranslate   The path to translate.
- * param transled              The address of the translated path.
- *
- * return                              If successful the function returns the len of the translated path.
- *                                             0therwise the function returns -1 and sets the global variable errno
- *                                             to indicate the error.
- *
- * errors                              [ENOTDIR]       the path to translate is not a directory.
- *                                             [ENOMEM]        because this function use calloc, errno can be set with
- *                                                                     this error code.                                
- */
-int
-translatepath(const char* totranslate, char** translated);
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* !__GETPATH_H */
+#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