Bonjour a tout le monde!!

J'ai un petit probleme....
Voila un bout de code:

mon_code.h
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
...
typedef struct toto *toto;
...
mon_code.c
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
struct toto
{
 int mon_champ;
};
...
void ma_fonction(void)
{
int i_alloc;
toto = malloc(255 * sizeof (toto));
for (i_alloc = 0; i_alloc < 255; i_alloc++)
   toto[i_alloc] = malloc(sizeof (toto));
....
Et quand je veux acceder a un des champs de ma structure, je fais par exemple:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
 fscanf(mon_fichier,"%d\n", &toto[i]->mon_champ);
A la compilation, il me dit " incompatible types in assignment" a la ligne a l'interieur du for...

Merci de votre aide...