2023-09-15 23:55:52 -03:00
|
|
|
#ifndef ASSIGNMENT1_LINKED_LIST_H
|
|
|
|
#define ASSIGNMENT1_LINKED_LIST_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "node.h"
|
|
|
|
|
2023-09-19 15:38:03 -03:00
|
|
|
int contains(Node *head, char *data);
|
|
|
|
|
2023-09-15 23:55:52 -03:00
|
|
|
Node *search(Node **head, char *data);
|
|
|
|
|
|
|
|
Node *searchForPrevious(Node **head, Node *current);
|
|
|
|
|
|
|
|
void add(Node **head, char *data);
|
|
|
|
|
2023-09-19 15:38:03 -03:00
|
|
|
void delete(Node **head, char *data);
|
2023-09-15 23:55:52 -03:00
|
|
|
|
2023-09-19 15:38:03 -03:00
|
|
|
void findAndReplace(Node *head, char *data, char *newData);
|
2023-09-15 23:55:52 -03:00
|
|
|
|
2023-09-19 15:38:03 -03:00
|
|
|
void printList(Node *head);
|
2023-09-15 23:55:52 -03:00
|
|
|
|
2023-09-19 15:38:03 -03:00
|
|
|
int stop(Node **head);
|
2023-09-15 23:55:52 -03:00
|
|
|
|
|
|
|
#endif //ASSIGNMENT1_LINKED_LIST_H
|