github.com/cycloss/advent-of-code@v0.0.0-20221210145555-15039b95faa6/2020/day7/day7.h (about)

     1  #include <arrayList.h>
     2  #include <hashMap.h>
     3  #include <regex.h>
     4  #include <stdio.h>
     5  #include <stdlib.h>
     6  #include <string.h>
     7  
     8  typedef struct {
     9      char* color;
    10      int count;
    11  } bag;
    12  
    13  void bagKvpPrinter(keyValPair* kvpp);
    14  void strPrinter(void* str);
    15  char* getBagName(char** line);
    16  bag* getNextBag(char** line);
    17  void freeBag(void* bagp);
    18  void freeMapPair(keyValPair* kvpp);
    19  void freeBagMap();
    20  
    21  int findBagsWithinBag(char* bagName, int multiplier);