/* Traitement sur fichiers ex‚cutables */ #include #include #include #include #include "../../etc/etc.h" #include "tool.h" #include "../common/commun.h" /* Recherche un fichier d'une liste dans le PATH de recherche executable Retourne -1 si trouve pas, 0 si premier nom trouv‚, 1 si second path contiendra le path trouv‚ */ export int file_findpath0 ( const char *tbnom[], /* noms possibles du fichier */ /* avec ou sans extension */ int nbnom, char *path) /* path trouve */ { int find = -1; char *tb[50]; int nb = path_varenvsplit ("PATH",tb); tbstr_skipstrip (tb,nb); for (int no=0; find == -1 && no %2d %s\n",nom,ret,ret!=-1 ? path : "?"); } int main (int argc, char *argv[]) { if (argc > 1){ for (int i=1; i