Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1. / /Array List of strings
  2. typedef struct SmallList {
  3. int size, cap;char** arr;
  4. }SmallList;
  5.  
  6. // Array List of Array List of Strings
  7. typedef struct BigList {
  8. int size, cap;
  9. SmallList* arr;
  10. }BigList;
  11. // Prototypesfor the Big Array Lists
  12. BigList * createBig();
  13. void expandBig(BigList *);
  14. void add2Big(BigList *, char *val);
  15. // Prototypes for the Small Array Lists
  16. void expandSmall(SmallList *);
  17. void initializeSmall(SmallList *);
  18. void add2Small(SmallList *, char *val);
  19. // Method to find an index for the given string
  20. int getInd(BigList *, char *val);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement