Professional Documents
Culture Documents
****************/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
return 0;
}
return head;
}
ptr = *head;
return head;
}
void delete(list_t **head)
{
list_t *temp = *head;
lis_t *prev;
if (temp->next == NULL )
{
*head = temp->next;
free(temp);
return 0;
prev->next = temp->next;
free(temp);
return 0;
}
ptr = *head;
strcpy(newnode->var , sptr);
newnode->next = NULL;
else
{
while(ptr->next!= NULL)
{
ptr = ptr->next;
}
ptr->next = newnode;
return ptr;
fclose(fp1);
fclose(fp2);
return 0;
}