Bonsoir,

J'ai actuellement, dans un programme:
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
17
18
19
20
21
22
23
24
25
26
27
 
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 50
 
char x1_string[MAX];
char x2_string[MAX];
 
int main(int argc, char* argv[]){
strcpy(x1_string, argv[1]);
strcpy(x2_string, argv[2]);
 
int x1_length=strlen(x1_string);
int x2_length=strlen(x2_string);
 
// ...
 
int x1_t[MAX]={0};
int x2_t[MAX]={0};
 
int j=x1_length;
while(j>=0){
x1_t[i]=atoi(x1_string[j]);
i--;
j--;
}
Pourquoi reçois-je un avertissement ``passing argument 1 of `atoi' makes pointer from integer without a cast''?

Merci.