Je compile une bibliothèque C sur mac os x. Quand j'ai tapé l'entrée et après avoir imprimé sur l'écran les données je ne vois pas quelque chose.Problème avec scanf() sur mac
char *path = NULL;
peerdisplay = "Bob";
printf("Insert the full 'To' path: ");
scanf(" %a[^\n]", &path);
printf("A path: %s \n", &path);
Quand je remplace le% par% s, l'impression ok, mais après la course, j'ai une erreur de segmentation. J'aime courir comme un script.