You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
529 B

4 years ago
4 years ago
  1. /*
  2. * linkedlist.h
  3. *
  4. * Created by Yigit Colakoglu on 07/06/2021.
  5. * Copyright yigit@yigitcolakoglu.com. 2021. All rights reserved.
  6. */
  7. #ifndef linkedlist_h
  8. #define linkedlist_h
  9. #include <stdio.h>
  10. typedef struct {
  11. struct linkedlist *next;
  12. char *data;
  13. } LinkedList;
  14. LinkedList *linkedlistalloc(void);
  15. int linkedlistfind(LinkedList *p, char *str);
  16. LinkedList*linkedlistadd(LinkedList *p, char *data);
  17. void linkedlistprint(LinkedList *p, FILE *out, char *payload);
  18. #endif /* Symbol’s value as variable is void: \. */