CS3413/Assignment1/linked_list.h

22 lines
451 B
C

#ifndef ASSIGNMENT1_LINKED_LIST_H
#define ASSIGNMENT1_LINKED_LIST_H
#include <stdbool.h>
#include "node.h"
Node *search(Node **head, char *data);
Node *searchForPrevious(Node **head, Node *current);
void add(Node **head, char *data);
bool delete(Node **head, char *data);
bool findAndReplace(Node **head, char *data, char *newData);
void printList(Node **head);
bool stop(Node **head);
#endif //ASSIGNMENT1_LINKED_LIST_H