Problème d'allocation

firk -  
 firk -
Bonjour,

J'ai une fonction avec les paramètres suivants : colocation(int R[],int L,char *statut1,char *statut2)
Dans ma fonction main(), j'ai réglé le problème pour les chaînes de caractères, mais pas pour les 2 autres paramètres :
j'ai essayé qqch du style :

main()
{ int i;int L; int *R;
char *status[6];char *statut1;char *statut2;

statut1=(char*)malloc(6*(sizeof(char)));
statut2=(char*)malloc(6*(sizeof(char)));

L=(int)malloc(10000*(sizeof(int)));
R[0]=(int) malloc(10000*(sizeof(int)));
R[1]= (int)malloc(10000*(sizeof(int)));

Pouvez-vous m'aider, svp?

1 réponse

firk
 
Y a t il qqn pour m'aider? C'est assez urgent.
0