Browse Source

Documentation execute

Loquicom 6 years ago
parent
commit
ef906d7d05
1 changed files with 19 additions and 0 deletions
  1. 19 0
      execute.h

+ 19 - 0
execute.h

@@ -17,8 +17,27 @@ extern pid_t active;
 extern pid_t last;
 
 /* --- Fonctions publiques --- */
+/**
+ * Indique si un fichier est executable
+ * @param char* Chemin vers le fichier
+ * @return Vrai/Faux
+ */
 boolean is_executable_file(const char *);
+
+/**
+ * Execute une commande shell
+ * @param char* Nom de la commande
+ * @param char** Arguments (argv)
+ * @return Status de la commande
+ */
 int exec_shell(char*, char**);
+
+/**
+ * Execute un programme
+ * @param char* Nom du fichier executable
+ * @param char** Arguments (argv)
+ * @return Status du programme
+ */
 int exec_file(char*, char**);
 
 #endif /* EXECUTE_H */