Delete Leak, Task 10 is workgit add .!

This commit is contained in:
AZEN-SGG 2025-05-20 19:19:17 +03:00
parent 651cc5c7d9
commit bccb0a6617
44 changed files with 12 additions and 1124 deletions

View file

@ -11,7 +11,7 @@
/* ./a10.out p filename */
int main (int argc, char *argv[])
{
node *head;
node *head = NULL;
char *name;
double t;
int p, len, task = 10;

View file

@ -24,13 +24,12 @@ node * t10_solve (node *head)
if (start) {
delete_nodes(start->next, down+1);
start->next = next;
last = start;
curr = start;
} else {
delete_nodes(head, down+1);
head = next;
last = NULL;
curr = NULL;
}
curr = NULL;
}
down = 0;
}