Bonjour,
Je suis en train de coder une fonction qui verifie le binaire dans chacun des paths
je voudrais concatener le path avec l executable et le passer sous access()
Quand j'utilise my_strcat , j ai "core dumped "
Voici un extrait du code
Si quelqu'un a une idee.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 void path(char *bin, char *path) { char **str; int i; i = 0; str = my_str_to_wordtab(path); while (str[i] != NULL) { str[i] = my_strcat(str[i], "/"); str[i] = my_strcat(str[i], binaire); printf("%s\n", str[i]); i++; } }
Cordialement,
Partager