Ca ne marche pas.
voila mon code :
int init_tab();
#define TAILLE_MAX = 100
void init_tab()
{
int i=0;
char chaine[TAILLE_MAX]="";
FILE * fichier = NULL;
fichier = fopen("essai.txt","r");
if ((fichier !=NULL)
{
while ( fgets (f, TAILLE_MAX,buffer))
{
stcpy(buffer, MesPrt[i]);
i++;
}
fclose(fichier);
}
return(0);
}
voila les erreurs :
"main.c", line 21 pos 7; (W) [ANSI] missing prototype for "init_tab"
"main.c", line 23 pos 6; (W) [ANSI] missing prototype for "init_tab"
"main.c", line 23 pos 6; (E) inconsistent redeclaration of "init_tab"
"main.c", line 26 pos 21; (E) syntax error; unexpected symbol: "="
"main.c", line 27 pos 17; (E) syntax error; unexpected symbol: "="
"main.c", line 30 pos 2; (E) syntax error; unexpected symbol: "{"
"main.c", line 31 pos 27; (E) syntax error; unexpected symbol: "="