S
sulays
I need to insert and sort in a link list
sulays said:I need to insert and sort in a link list
sulays said:I need to insert and sort in a link list
in getting an infinite loop dont know why?
this is in main
while(!feof(fpA))
{
readingaemployeedata(&fpA,lastn,firstn,midini,&empid,title,balance);
if(feof(fpA))
break;
tempPtr =
creatingaemployeedata(lastn,firstn,midini,empid,title,balance);
while(tempPtr != NULL)
prinheader();
firstemployeePtr = inserting(firstemployeePtr,tempPtr);
printing(firstemployeePtr);
}
function
EIS* inserting(EIS *fPtr,EIS *tempPtr)
{
EIS *prev = NULL;
EIS *curr = NULL;
if(fPtr == NULL)
return tempPtr;
curr = prev = fPtr;
sulays said:if I use **fPtr insted of *fPtr I get a seg fault
yes is long and I dont know how to make small version think that
everything is necesary for the program but if you want I can
post the whole thing
sulays said:I need to insert and sort in a link list
how do i do that?
I posted what I have I just wanted to know what was wrong with it
because I can't see it being trying everything and stil not working
instead getting really confuse here with all the hints thanks anyway
like this? I dont know what you want i need hel with the inserting, is
only for last name for now but I need first name and mid ini and id
now i'm getting the first input to print but it stop
I posted what I have I just wanted to know what was wrong with it
because I can't see it being trying everything and stil not working
instead getting really confuse here with all the hints thanks anyway
sulays said:I posted what I have I just wanted to know what was wrong with it
because I can't see it being trying everything and stil not working
instead getting really confuse here with all the hints thanks anyway
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.