Hi,
Debtor for the aid that you had given in bug of mine mud to me.
I want plus an aid if you he will be able to give to me. In my system of
ENCLOSURE FOR BULLFIGHTING HALL FAME:
void load_hall_of_fame(void)
{
FILE *fl;
int date, award;
char name[MAX_NAME_LENGTH + 1];
struct hall_of_fame_element *next_node;
fame_list = 0;
if (!(fl = fopen(HALL_FAME_FILE, "r"))) {
perror("N=E3o conseguiu abrir o Hall Fame File");
return;
}
while (fscanf(fl, "%s %d %d", name, &date, &award) == 3) {
CREATE(next_node, struct hall_of_fame_element, 1);
strncpy(next_node->name, name, MAX_NAME_LENGTH);
next_node->name[MAX_NAME_LENGTH] = '\0';
next_node->date = date;
next_node->award = award;
next_node->next = fame_list;
fame_list = next_node;
}
I wanted to place a condition that it deleted the first one placed when
had 5 players in the Fame Hall, I have skill to make this?
Thanks and Good Night,
Griffith
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST