well with the fixed corrections im only getting one error at the return saying i cannot convert from an info_node* to int..
Code:int build_list(struct info_node* pnode) { FILE* infile ; struct info_node* link1 ; struct info_node* top ; int result ; infile = fopen("p3purge_data.txt", "r") ; link1 = (info_node *)malloc(sizeof(info_node) ) ; fscanf( infile, "%s%s%d%f", link1->fname , link1->lname, &link1->rank, &link1->score ) ; top = link1 ; fclose(infile); return(top) ; }