CS3413/Assignment1/linked_list.h

24 lines
489 B
C
Raw Normal View History

2023-09-15 23:55:52 -03:00
#ifndef ASSIGNMENT1_LINKED_LIST_H
#define ASSIGNMENT1_LINKED_LIST_H
#include <stdbool.h>
#include "node.h"
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);
void delete(Node **head, char *data);
2023-09-15 23:55:52 -03:00
void findAndReplace(Node *head, char *data, char *newData);
2023-09-15 23:55:52 -03:00
void printList(Node *head);
2023-09-15 23:55:52 -03:00
int stop(Node **head);
2023-09-15 23:55:52 -03:00
#endif //ASSIGNMENT1_LINKED_LIST_H