連結リストを利用して駅名を順に格納していき、それを逆から参照していきたい
のですがこの後がわかりません。どうしたらいいのでしょうか?
typedef struct Station {
char name[256];
struct Station *next;
} Station;

int main(void)
{
Station *currents;
Station *lasts = NULL;
char buf[256];

currents = malloc(BUFSIZE);

printf("駅名入力(終了キー:/e)\n");
while (1) {
fgets(buf, sizeof(buf), stdin);
buf[strlen(buf) - 1] = '\0';
if (strcmp(buf, "/e") == 0)
break;
strcpy(currents->name, buf);
currents->next = malloc(sizeof(BUFSIZE));
lasts = currents;
}

return 0;
}