Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
source code used to check if a specified command exists (if the command checking...
[simgrid.git] / tools / tesh2 / include / is_cmd.h
diff --git a/tools/tesh2/include/is_cmd.h b/tools/tesh2/include/is_cmd.h
new file mode 100644 (file)
index 0000000..4c6d743
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef __IS_CMD_H\r
+#define __IS_CMD_H\r
+\r
+#include <com.h>\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+int\r
+is_cmd(char** path, char** builtin, const char* p);\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif /* !__IS_CMD_H */\r
+\r