Problème avec structure dans une fonction
Bonjour a tous, jai quelque difficulté a faire fonctionner ce prgm; si quelquun pouvait maider ce serait sympa ... merci :)
Code:
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
|
typedef struct mem{
char *nume[];
}t_mem;
void signif(char *n, t_mem tab[])
{
*tab[0].nume = n;
//bien sur ya dautre truc dans la fonction, mais ici c ca qui marche po
}
int main(void)
{
char num[]="1860469T45";
t_mem s[1];
signif(num,s);
printf("%s\n",*s[0].nume); //ici je voudrais que sa maffiche : 1860469T45
system("pause");
return 0;
} |